-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Keyboard navigation doesn't work with search-enabled="false" #375
Comments
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
Is there any progress on this? |
:/ ???? |
+1 This is the only issue which made our UI testers angry. Keyboard navigation is a must, especially in enterprise applications where system operators often navigate forms only using keyboard because that's much faster. As far as I have seen, ui-select is the most popular (68 contributors!) dropdown element for Angular, but this issue is real showstopper. Maybe I'll find some time to fix it myself, but more likely, I'll find some other dropdown, maybe less popular (and less supported) but with keyboard navigation. Which is a shame, because otherwise ui-select is great. |
@wesleycho there are already some PR that can solve this issue; PR1114 and PR1109. I had the same idea and I think is the most cleanest way as the searchInput already has the keyboard navigation handler. |
#1114 looks the more comprehensive of the two, @fcaballero if you feel strongly you could fork cbryer's repo, rebase, resolve any conflicts, squash and create a new PR? |
@user378230 ok for me, I will take care of it ;) |
…bled is false Closes angular-ui#375 PRs angular-ui#1114 and angular-ui#1109
@user378230 or @wesleycho may you please merge these changes in #1543 and remove the oldest PRs? |
…bled is false Closes angular-ui#375 PRs angular-ui#1114 and angular-ui#1109 fix(indentation) use 2 spaces, add white-space
Fix issue where keyboard navigation was disabled when searchEnabled was set to false. Caused by hiding the input box which prevent key events from propagating to the directive. Resolved hiding the input offscreen when searchEnabled is false. Fixes angular-ui#1059, fixes angular-ui#917, fixes angular-ui#589, fixes angular-ui#375 Closes angular-ui#1543, closes angular-ui#1114, closes angular-ui#1109 (supersedes all)
* fix(searchEnabled): maintain keyboard nagivation Fix issue where keyboard navigation was disabled when searchEnabled was set to false. Caused by hiding the input box which prevent key events from propagating to the directive. Resolved hiding the input offscreen when searchEnabled is false. Fixes #1059, fixes #917, fixes #589, fixes #375 Closes #1543, closes #1114, closes #1109 (supersedes all) * fix(selectize): show placeholder when search disabled Previously when searchEnabled was set to false, the placeholder would also be hidden on the selectize theme. This fix sets the search input to disabled rather then hidden when the searchEnabled attribute is set to false. Fixes #1145, fixes #949, fixes #691 * fix(searchEnabled): Prevent searching when disabled Previously, even when search-enabled was set to false, users could still type in text and filter the list. This made disabling the search feature pointless. This fix prevents text entry to the search input and thus disables filtering. Fixes #1658
* fix(searchEnabled): maintain keyboard nagivation Fix issue where keyboard navigation was disabled when searchEnabled was set to false. Caused by hiding the input box which prevent key events from propagating to the directive. Resolved hiding the input offscreen when searchEnabled is false. Fixes angular-ui#1059, fixes angular-ui#917, fixes angular-ui#589, fixes angular-ui#375 Closes angular-ui#1543, closes angular-ui#1114, closes angular-ui#1109 (supersedes all) * fix(selectize): show placeholder when search disabled Previously when searchEnabled was set to false, the placeholder would also be hidden on the selectize theme. This fix sets the search input to disabled rather then hidden when the searchEnabled attribute is set to false. Fixes angular-ui#1145, fixes angular-ui#949, fixes angular-ui#691 * fix(searchEnabled): Prevent searching when disabled Previously, even when search-enabled was set to false, users could still type in text and filter the list. This made disabling the search feature pointless. This fix prevents text entry to the search input and thus disables filtering. Fixes angular-ui#1658
Hello,
Great job with this project, I have only one small problem, if I add search-enabled="false" when I have few options, keyboard navigation doesn't work anymore. Is there any other way to hide search field?
Example:
ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" search-enabled="false" style="min-width: 300px;"
Best Regards,
Mihai
The text was updated successfully, but these errors were encountered: