We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The data-focus attribute on the Toggle Group's root element and currently focused item are not removed on blur.
data-focus
https://zagjs.com/components/react/toggle-group
data-focus should be removed from both the root element and the currently focused item once the component has lost focus
I believe simply adding the "clearFocusedId" action to the ROOT.BLUR event would solve the issue:
"clearFocusedId"
ROOT.BLUR
focused: { on: { "ROOT.BLUR": { target: "idle", actions: ["clearIsTabbingBackward", "clearFocusedId"], }, ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 Bug report
The
data-focus
attribute on the Toggle Group's root element and currently focused item are not removed on blur.💥 Steps to reproduce
data-focus
attribute is not removed upon blur (screen capture below)💻 Link to reproduction
https://zagjs.com/components/react/toggle-group
🧐 Expected behavior
data-focus
should be removed from both the root element and the currently focused item once the component has lost focus🧭 Possible Solution
I believe simply adding the
"clearFocusedId"
action to theROOT.BLUR
event would solve the issue:🌍 System information
📝 Additional information
toggle_group_data_focus.mov
The text was updated successfully, but these errors were encountered: