filterrific
filterrific copied to clipboard
When loading results with links from livesearch first click won't work
When I do a live search and the results are links, the first click on one of those links won't open the url. When i checked the console i noticed that when i click for the first time it fires an extra ajax search call instead of opening the link. After this the links do work.
I noticed the same behaviour in your example although there are no links: try to search something and click somewhere after it. You see an extra ajax request going out.
The demo seems to work fine for rails5, but not for 4.2. (i.e after using the search you have to click twice to get to page 2). Just slightly annoying - is anyone aware how to fix this?
I've noticed this same issue running a Rails 5.0.0.1 app using Filterrific 2.1.2.
I'm just adding a few things I've tried so far that haven't fixed it
- Disabling Turbolinks
- Reverting to the old JS initialization code