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

Fix numerous issues with select enabled #1717

Merged
merged 3 commits into from
Aug 7, 2016

Conversation

user378230
Copy link
Contributor

fix(searchEnabled): maintain keyboard nagivation

fix(selectize): show placeholder when search disabled

fix(searchEnabled): Prevent searching when disabled

  • User's were still able to type and filter when search-enabled="false"

cbryer and others added 2 commits July 10, 2016 23:00
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)
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
@user378230 user378230 added this to the v0.19.0 milestone Jul 10, 2016
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
@user378230 user378230 force-pushed the fix-select-enabled branch from 8c81552 to 4184fa7 Compare July 11, 2016 18:15
@aaronroberson
Copy link
Contributor

Hey @user378230,

Do you have an NPM account? I'd like to add you as an owner of the npm project so that you can publish new versions.

If you don't have an account but would be interested in helping to publish new packages to NPM, please sign up and send me your NPM username:

https://www.npmjs.com/signup

@aaronroberson aaronroberson merged commit be0d301 into angular-ui:master Aug 7, 2016
@user378230
Copy link
Contributor Author

@aaronroberson I don't need to since 12c37bc (chore(travis): add npm deploy) 😉

@aaronroberson
Copy link
Contributor

It doesn't seem to be working?

@Nighthawk14
Copy link

Nighthawk14 commented Aug 18, 2016

Hi guys,

About Keyboard navigation stopped working when search-enabled="false".
This works fine on Chrome / Firefox however on Safari it's still behaving the old way (keyboard working when search-enabled="true" but not when search-enabled="false")

@user378230
Copy link
Contributor Author

I don't have/use a Mac, feel free to submit a fix. 😃

kboga pushed a commit to kboga/ui-select that referenced this pull request Nov 29, 2016
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.