I have 2
selects where changes to the first
select refresh the second
I am using
onChange on the first
Turbo.visit to trigger a re-rendering:
This calls a controller method that renders a
turbo_stream, updating the
turbo_frame_tag around the second
def index_by_country ... render turbo_stream: turbo_stream.update(...) end
This works nicely, the second
select is refreshed, however when I do this, the ‘Turbo.visit’ changes the URL.
What can I do to not change the URL?
I want it to remain the same, no matter how often I change the first select.