-
Couldn't load subscription status.
- Fork 6
Closed
Copy link
Description
Provide a general summary of the issue here
If the disabled state of an <sl-button> in an <sl-tool-bar> changes, the ToolBarItemButton definition is not updated. This causes the state of the button to not match the state of the menu item.
🤔 Expected Behavior?
The state should match
😯 Current Behavior
It doesn't match
💁 Possible Solution
Perhaps use an MutationObserver to observe the disabled state of the buttons and update the toolbar item definitions.
🖥️ Steps to Reproduce
https://github.com/sl-design-system/components/tree/bug/storybook-grid-toolbar-state
- http://localhost:6006/?path=/story/grid-selection--state-demo
- Observe clicking the "Toggle test1" will change the disabled state of the button
- Observe when making the window smaller and the buttons disappearing into the overflow menu button that the button state no longer matches the original button
👤 Your name
Menno Homan
🧢 Your product/team
Team Us Heit
🎨 Your Theme(s)
Magister
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✈️ Released