jhund / filterrific

Filterrific is a Rails Engine plugin that makes it easy to filter, search, and sort your ActiveRecord lists.
http://filterrific.clearcove.ca
MIT License
910 stars 124 forks source link

Uncaught TypeError #222

Open Viehlieb opened 1 year ago

Viehlieb commented 1 year ago

There appears an error, when no closest('html') is found

in filterrific.js:133

return input.closest('html').length == 0 it should be:

return input.closest('html') === null || return input.closest('html').length == 0 otherwise the interval is not cleared and u get tons of errors, stacking up on each turbolink.

Uncaught TypeError: Cannot read properties of null (reading 'length') at removed (filterrific.js?body=1:133:35) at check (filterrific.js?body=1:117:11)