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

Making sure atleast one items is highlighted before selecting on TAB #1030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jintoppy
Copy link
Contributor

Current behaviour is, when user press TAB, ui-select is just triggering select() without checking if there is any activeIndex. If I do a clear, then there shouldn't be any highlighted item and it should not select when I press TAB.

Please correct me if I am wrong

@wesleycho
Copy link
Contributor

Reverted this since there's a test it breaks when merged with current master - this needs updating.

@wesleycho wesleycho reopened this Apr 6, 2016
fcaballero pushed a commit to fcaballero/ui-select that referenced this pull request Apr 17, 2016
- Ensure at least one item is highlighted before selecting on tab keypress

Closes angular-ui#1030
fcaballero pushed a commit to fcaballero/ui-select that referenced this pull request Apr 25, 2016
- Ensure at least one item is highlighted before selecting on tab keypress

Closes angular-ui#1030
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants