-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Combobox] Programmatically selecting a combobox item focuses the component #5540
Comments
**Related Issue:** #5540 ## Summary added a prop to combobox-item that will allow it to inform it's parent if it was clicked or not. The combobox parent no longer sets focus on it's text input whenever a combobox-item is updated. Instead it only sets text input focus when there is a keyboard interaction or the updated combobox-item is passed with a clicked prop equal to _true_. This allows combobox-items to be selected programmatically without changing the document.activeElement - [x] feature or fix has a corresponding test - [] changes have been tested with demo page in Edge (I still need to get a VM setup) Co-authored-by: Matt Driscoll <mdriscoll@esri.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Ben Elan <belan@esri.com>
hey @alisonailea don't close the issue, just label it as installed so that it can get verified. |
Installed and assigned for verification. |
@alisonailea Can you speak to the skipped tests in The fix works well with |
Installed and assigned for verification. |
A good majority of the skip tests have been addressed via #5885, but there still seems to be a skipped test in @alisonailea It looks like there's one skipped test remaining in filter.e2e.ts per the discussion in https://github.com/Esri/calcite-components/pull/5774/files#r1030924370. Reassigning to dev for final incorporation. |
@alisonailea can you restore the last skipped test? |
Installed and assigned for verification. |
@alisonailea Can the skipped tests be restored? Reassigning to dev for final incorporation. |
@geospatialem I just pulled it down and removed the
|
Seems like unstable tests at play. @alisonailea Can you create a follow-up issue to restore the skipped tests? |
Follow up issue created: #6311 |
The original issue has been mitigated and verified. With the above follow-up to the |
Actual Behavior
When programmatically selecting a combobox item, focus is moved to the Combobox. This differs from how other form components work, where the acted upon component does not gain focus.
Expected Behavior
I wouldn't expect the Combobox to gain focus when programmatically setting the selected value of contained combobox items.
Reproduction Sample
https://codepen.io/mac_and_cheese/pen/rNvXGgz?editors=1000
Reproduction Steps
Reproduction Version
95
Relevant Info
No response
Regression?
No response
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: