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

Fix for keyboard navigationwhen search-enabled is false #1543

Closed
wants to merge 25 commits into from

Conversation

fcaballero
Copy link

There are other PR with some fix for #375 but I got some problem trying to rebase, therefor I added those changes in a clean master in order to don't have problems when merged.
The PRs mentioned are #1114 and #1109

@wesleycho
Copy link
Contributor

Changes to dist need to be undone. Please run git reset --hard ac0c72f && git push -f

aria-owns="ui-select-choices-{{ $select.generatedId }}"
aria-label="{{ $select.baseTitle }}"
aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}"
role="combobox"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation to 2 spaces, no tabs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, please check if it's what you expected...

@user378230
Copy link
Contributor

  1. Can you rebase once more? it should get rid of a bit of noise in the test diff.
  2. Can you fix the white-spacing on the new ng-class attributes
    (add space: ng-class="{'ui-select-search-hidden': !$select.searchEnabled}"
  3. You need to squash, when doing so please amend the message according the the commit message style guidelines in CONTRIBUTING.md

@ramonjsantiago
Copy link

Can the owner of this project resolve the conflicts and merge this pull request #1543 into the angular-ui-select master please?

I really need this one specific fix.

@fcaballero
Copy link
Author

@wesleycho, @user378230 is everything ok for merging this? or do I miss or mess up something?

@user378230
Copy link
Contributor

@fcaballero I think you merged from master rather than rebased. The only commit should be the one with your changes.

Note also 2 & 3 in my other response:

  1. ...
  2. Can you fix the white-spacing on the new ng-class attributes (add space: ng-class="{'ui-select-search-hidden': !$select.searchEnabled}"
  3. You need to squash, when doing so please amend the message according the the commit message style guidelines in CONTRIBUTING.md

wesleycho and others added 14 commits April 25, 2016 20:06
- Fix sourcemap generation
- Upgrade plugins
- This adds the necessary files (.gitattributes and .editorconfig) to ensure line endings use lf
- Optimize running dynamic width calculations when resizing
Resolves bad changes made in angular-ui#1541 which caused no select.css to be
generated as part of the build.
- Converts previous example pages to invidual html partials which are
  wrapped in standard header and footer as part of a docs build process

- Updates all examples to angular v1.5 making use of controllerAs
  syntax

- Standardises the look and feel across examples

- Creates dedicated github pages page (docs/index.html) which has links
  to all examples

- Adds an "edit in plunkr" button to launch the example in a plunkr
  session

- Automates the deployment to github pages using travis ci whenever the
  master branch is built.

- General tidy up of README and index docs

Closes angular-ui#112
- Prevent accidental removal of a tagged item that subsequently becomes invalid

Closes angular-ui#1359
- Ensure at least one item is highlighted before selecting on tab keypress

Closes angular-ui#1030
- Explicitly disallow focusing of list, mainly fixes behavior in Firefox

Closes angular-ui#898
Previously the template was compiled, edited, and then recompiled. This
was unnecessary as the changes we unrelated to the scope and so could 
be made before the link function was run.

This change, moves the DOM transformations to the compile function so
the directive does not have to be compiled manually.

Fixes angular-ui#1000
- Show matches in selectivize template when search is disabled

Closes angular-ui#861
- Correctly remove sortable classes from elements on `dragend`

Closes angular-ui#902
- Change inputs to `type="search"`
- Change to `autocomplete="off"` as per HTML spec

Closes angular-ui#991
user378230 and others added 8 commits April 25, 2016 20:07
filenames plugin appeared to be causing header and footer additions
to be run twice.

Also removes dodgy character at start of header html partial
Do not overflow matched item text out of select block. 

Closes angular-ui#1337
hide clear button if ui-select is disabled

Closes angular-ui#1388 and angular-ui#980
Use triple equals to determine if the selection matches
one of the choices.

Fixes angular-ui#1328
perf: change test in ctrl.isActive

before :
( itemIndex < 0 && ctrl.taggingLabel !== false ) ||( itemIndex < 0 && ctrl.taggingLabel === false)
after :
itemIndex < 0
use first taggingToken contained in paste data for splitting (previously only first token was used)

Closes angular-ui#1566
…bled is false

Closes angular-ui#375 PRs angular-ui#1114 and angular-ui#1109

fix(indentation)  use 2 spaces, add white-space
@ramonjsantiago
Copy link

ramonjsantiago commented May 13, 2016

Can you guys please resolve the conflicts and merge this fix in? It has been hanging out there for a while.

@user378230
Copy link
Contributor

user378230 commented May 13, 2016

@ramonjsantiago want to have a go yourself? The first post has all the details you need 😃

user378230 pushed a commit to user378230/ui-select that referenced this pull request Jul 10, 2016
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)
aaronroberson pushed a commit that referenced this pull request Aug 7, 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 #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
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.