Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Minor Fixes #52

Merged
merged 4 commits into from
Nov 14, 2017
Merged

Minor Fixes #52

merged 4 commits into from
Nov 14, 2017

Conversation

adrian-enspired
Copy link
Contributor

  • type-to-search on multi-selects was resulting in doubling the first search character due to overlapping event listeners
  • this.navigating should be cleared on close; was disabling search-to-type after selecting an item via the keyboard
  • search() should only modify the DOM for "live" searches; was resulting in mixed-up display order for options
  • on open(), highlight the first selected option if any; first option otherwise
  • other minor fixes

clear this.navigating on close() so it won't interfere with nativeKeyboard type-to-select
short-circut type-to-search check (performance)
don't append options to document fragment if search is not live (was causing mis-ordered options on open())
prefer highlighting selected answer on open()
@Mobius1 Mobius1 merged commit a07dd5f into Mobius1:master Nov 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants