-
Notifications
You must be signed in to change notification settings - Fork 8
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
Wrong toolbar button getting focused when the toolbar receives focus #1423
Comments
The issue appears to be in the FAST toolbar, as I can reproduce the problem in their toolbar as well. The toolbar's |
Edit: I added this comment to the wrong issue. This comment doesn't apply to this issue. |
I created microsoft/fast#6835 to track the underlying issue in the FAST toolbar. |
Marking as blocked to reflect the dependency on the FAST issue |
# Pull Request ## 🤨 Rationale The latest version of fast-foundation has fixes for two of our toolbar issues, so this PR pulls in the latest version. Resolves #1422 Resolves #1423 ## 👩💻 Implementation Bump version in package file Update the rich-text-editor page object to adjust for a change in the toolbar code ## 🧪 Testing Used storybook to verify that the two toolbar issues are resolved ## ✅ Checklist <!--- Review the list and put an x in the boxes that apply or ~~strike through~~ around items that don't (along with an explanation). --> - [ ] I have updated the project documentation to reflect my changes or determined no changes are needed.
🐛 Bug Report
In
nimble-toolbar
, button focusing operates based on thetabindex
value. However, when clicking (mouse down) on another button withtabindex=-1
, the button withtabindex=0
receives focus during the mouse down event. This makes thenimble-button
being focused when clicking another button.Note: This issue is reproducible only in the Chrome browser.
💻 Repro or Code Sample
nimble-toolbar
(in the below example added textarea)tabindex=0
)🤔 Expected Behavior
No button in the toolbar should receive focus.
😯 Current Behavior
The button with the
tabindex=0
receives focus.💁 Possible Solution
🔦 Context
It is needed in the
nimble-rich-text-editor
as we focus back on the editor when a formatting button in thenimble-toolbar
is clicked.For more details, see #1416 (comment) (Issue 1)
🌍 Your Environment
The text was updated successfully, but these errors were encountered: