vue-bootstrap-typeahead
vue-bootstrap-typeahead copied to clipboard
Add keyboard navigation
#1
- ListItem component: replaced the old
activeclass on mouseover with a property (somehow helps #6) - Typeahead component: added events on input key down: up, down, enter (somehow helps #7, will need documentation in the README)
- List component: added a data value
activeListItemwhich goes from -1 to the length of the matchedItems, catch parent events to increment/decrement it and use it to set the active prop on list items
Any chance this can get merged? I just merged Owumaro:feature/keyboard-navigation into a local version of the current master, fixed the one line conflict, and everything is working. If @Owumaro would rebase off master, I think this would resolve the conflict-
@alexurquhart Can we have this merged please?
@alexurquhart this project is discontinued?
This is the exact reason I wanted to revive (but ended up having to fork: https://github.com/mattzollinhofer/vue-typeahead-bootstrap) this repository. I really wanted a more accessible tool to use and I saw this (and other) PRs that had already been submitted to solve the problem!
To that end, I merged in functionality that I think meets this need here: mattzollinhofer/vue-typeahead-bootstrap@6646027. This implementation is mildly different but I believe the outcome is essentially the same.
Thanks again and chime in here or on the fork if you have any other thoughts! 😄
You can find the functionality on npm here: https://www.npmjs.com/package/vue-typeahead-bootstrap.