forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SelectTree: keep the focus on the input while navigating between menu…
… items (woocommerce#49989) * Commit at a functional state * Change role to 'listbox' * Add --highlighted class rules * Fix overflow in create category modal * Add countNumberOfItems Fix multiple bugs Refactor Rename and move use-linked-tree file to linked-tree-utils * Add comments * Escape regExp * Allow to select/remove with the enter key * Add changelogs * Fix unit tests * Fix bug on css selector, since role was changed * Fix bug in index calculation and handle focus on checkboxes and expander button correctly * Only add activedescendant when something is highlighted preventDefault when pressing arrowUp * Fix bug: items array was being used instead of using linked tree * Call onSelect when pressing enter * Add guards to prevent tests breaking * Add additional tests for SelectTree * Add comments and rename some functions in linked-tree-utils
- Loading branch information
Showing
17 changed files
with
585 additions
and
137 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/js/components/changelog/update-navigation-while-on-input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: update | ||
|
||
Update SelectTree and Tree controls to allow highlighting items without focus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.