Skip to content

Fix issue when refreshing a page#22

Open
davesmiths wants to merge 1 commit intoawbush:masterfrom
davesmiths:master
Open

Fix issue when refreshing a page#22
davesmiths wants to merge 1 commit intoawbush:masterfrom
davesmiths:master

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