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

Keydown improvements #1604

Merged
merged 2 commits into from
Feb 7, 2017
Merged

Keydown improvements #1604

merged 2 commits into from
Feb 7, 2017

Conversation

andrews05
Copy link

@andrews05 andrews05 commented Jan 9, 2017

This change fixes a couple of issues with using the up/down keys: #1603
I don't know exactly what was causing the issue but I've resolved it by reworking the way it gets the index. The code is much simpler and should be more robust.

I also improved the performance of the keydown function by only selecting the $items when needed. This helps both when using the arrow keys and when typing in the livesearch in a very large list. Note I've removed the code that applies a filter based on the livesearch as it didn't appear to be used - I assume it was left over from an older version.

FriendlyWeb added 2 commits January 9, 2017 13:40
Rely on index within selectable lis instead of index within siblings
Only filter items when necessary
@caseyjhol caseyjhol merged commit 7448cc9 into snapappointments:master Feb 7, 2017
@andrews05 andrews05 deleted the keydown branch February 8, 2017 07:33
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.

2 participants