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

Configure skip focusser #1487

Merged
merged 4 commits into from
Mar 15, 2016
Merged

Configure skip focusser #1487

merged 4 commits into from
Mar 15, 2016

Conversation

excentris
Copy link
Contributor

This PR provides a new feature to be able to configure skipping the focusser after selecting an item.
After much trying I have unfortunately not found a way to cover the changes with the necessary unit tests. Focusing and testing the involved elements for focus proved more complex than I thought...

There was no easy way to configure if the focusser should be skipped
after selecting an item. The fact that the focusser is always focused
after selecting an item is especially problematic on mobile devices,
since this leads to the keyboard being shown, which might not be
desirable.

This commit provides the skip-focusser option to configure this
behavior on the ui-select directive.

Fixes #869, #401, #818, #603, #432 (partially)
aaronroberson added a commit that referenced this pull request Mar 15, 2016
feat(skipFocuser): add skip focusser option

Add a skipFocusser option to configure skipping the focusser after selecting an item.

Closes #869 #401 #818 #603 #432
@aaronroberson aaronroberson merged commit 4ee3d4e into angular-ui:master Mar 15, 2016
@aaronroberson
Copy link
Contributor

@excentris Can you please update the wiki to document this new option?

@excentris
Copy link
Contributor Author

@aaronroberson Done! Thank you very much for merging this!

@aaronroberson
Copy link
Contributor

You're welcome. We try to stay away from adding too many options, supporting every possible feature and configuration because it can become kludgy and even more difficult to manage. However, enough people have needed this feature that I let it through ;)

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