Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Form submission and first item highlighted options + better UX #1360

Closed
wants to merge 1 commit into from
Closed

Conversation

troch
Copy link

@troch troch commented Dec 5, 2013

Solution for issues #1298 and #908

  • Added typeahead-auto-highlight option for typeahead (default to true, meaning the first matching item is automatically activated)
  • Added typeahead-prevent-submission option for blocking enter event on input field (default to true)
  • Better UX: when option auto highlight is set to false, I had to modify few areas of the code to prevent bad behaviour with tab key events.
  • Removed click event not needed anymore (everything is done in 'blur') and $document reference

- Added typeahead-auto-highlight option for typeahead (default to true, meaning the first matching item is automatically activated)
- Added typeahead-prevent-submission option for blocking enter event on input field (default to true)
- Better UX: when option auto highlight is set to false, I had to modify few areas of the code to prevent bad behaviour with tab key events.
- Removed click event not needed anymore (everything is done in 'blur') and $document reference
@troch troch closed this Dec 5, 2013
@troch
Copy link
Author

troch commented Dec 5, 2013

I screwed up on something, will redo it shortly

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.

None yet

1 participant