Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue when refreshing a page #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davesmiths
Copy link

Hi Anthony

This is my first pull request so I hope I'm doing this right.

Recently I used fastLiveFilter in a project I'm working on and discovered an issue. When refreshing the page, in Firefox at least (not a hard refresh), the input value stayed the same. The issue was that fastLiveFilter outputted the same as for an empty input. The callback function was called but the resulting list was unchanged / unfiltered.

The fix here removes the callback(len); line and adds a triggerHandler to initialise. It worked for me. When the page was refreshed fastLiveFilter checked the current value of the input and did its fab thing.

all the best
Dave

When refreshing a page in Firefox (not a hard refresh) the input value stayed the same. The issue was fastLiveFilter outputted the same as for an empty input. The callback function was called but the result list was unchanged / unfiltered

The fix here removes the callback(len); line and adds a triggerHandler to fully initialise. This worked for me. When the page is refreshed, it checks the current value of the input and does its thing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant