-
Notifications
You must be signed in to change notification settings - Fork 645
Fix new select panel issues #2147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix new select panel issues #2147
Conversation
|
…ct-panel' into select-panel-fixes
…ct-panel' into select-panel-fixes
…ct-panel' into select-panel-fixes
hectahertz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thank you for contributing these fixes 🙂.
bolonio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the help :)
* Change deprecated/ActionList semantics * Remove item selection via Enter key * Handle focus on deprecated/ActionList * Adapt deprecated/ActionMenu prop * Update deprecated/ActionList tests and stories * Update deprecated/ActionList docs * Remove focusZone from the FilteredActionList component * Add sr-only description for input in the FilteredActionList component * Adapt SelectPanel: semantics, visual layout, add title, close button, save/cancel button and functionality. Update tests, docs, and stories. * Update SelectPanel test snap * Update deprecated/ActionList axe test * Update deprecated/ActionList axe test * Delete commented code * Update stories, Add ESC reset functionality * Add changeset (breaking change) * Preselect items on the SelectPanel docs that aren't the first ones * Use Heading instead of h1 on SelectPanel * Don't use selected items as the SelectPanel anchor label * Replace custom SrOnly with VisuallyHidden * Make the SelectPanel example dimensions larger * Support setting the selected items asyncronously * Fix new select panel issues (#2147) * Fix onClose being called with event instead of gesture Co-authored-by: Hector Garcia <[email protected]> * Remove unsupported PageUpDown bindkeys from useFocusZone * Remove console.debug * Make `title` and `inputLabel` optional with defaults * Remove unused prop * Add a placeholder prop for the search input * Make footer buttons smaller * Use `ButtonClose` * Better default title for multiselect `SelectPanel` * Fix lint warnings * Fix the AutocompleteMenu tests * Fix lint error * Fix MarkdownEditor tests, remove one for old behavior Co-authored-by: Hector Garcia <[email protected]> Co-authored-by: Cameron McHenry <[email protected]>
@bolonio @hectahertz While integrating with our app, I found a couple of issues that should be addressed.
SelectPanelhas already started rendering, then the selected state does not appear as expected. Adding an effect to ensure that the internal selection state stays synchronized if the external selections change makes this work as expected.AnchoredOverlay, and one for the close/cancel buttons ensures that we always pass the gesture string correctly.