Open enderwiggens opened 3 years ago
Well this all depends if you are using Turbolinks, Turbo or neither. I think the best way to support these is to remove initialization from the filterrific-jquery.js file and add documentation so that each developer can add Filterrific.init
in their own code.
It looks like there is a compatibility issue with the new Hotwire Rails / Turbo.js framework and how Filterrific is initialized.
As turbolinks has been expanded and renamed to turbo, the turbolinks:load call is now turbo:load so to have Filterrific initialize you need to use the following in filterrific.js