Skip to content
Advertisement

Tag: slimselect

Rails 7 JavaScript event listeners stop working after browser back?

I have rails 7 app where I’m trying to build a search bar using either tom-select or slim-select. My issue reproduces no matter which library I’m using therefore it must be the issue on my rails side. app/views/cities/index.html.erb and this is my js controller (in this case I’m using tom-select) app/javascript/controllers/ts/search_controller.js app/controllers/cities_controller.rb Problem Repro: Open cities index and click on

How to select an option of a slim select with jquery

I have some concatenated selects that work fine. By the way, I would like to convert those selects into slim selects but I found some difficulties in doing that. For example, I have a select with ID level_incarico. When I select an option of level_incarico greater than zero other selects should appear. After that, when I change an option of

Advertisement