ui5-webcomponents
ui5-webcomponents copied to clipboard
ToolbarButton fires onClick event even when disabled={true}
Describe the bug
The ToolbarButton component continues to trigger the onClick handler even when it is rendered with the disabled prop set to true.
Isolated Example
https://stackblitz.com/edit/vitejs-vite-8vp3wcrp
Reproduction steps
- Render a Toolbar component with a ToolbarButton inside.
- Pass disabled={true} to the ToolbarButton.
- Attach an onClick handler to the ToolbarButton.
- Click the button in the UI.
Expected Behaviour
When disabled={true} is passed, the onClick handler should not be invoked on user interaction.
Screenshots or Videos
No response
UI5 Web Components for React Version
2.11.1
UI5 Web Components Version
2.11.0
Browser
Edge
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
- [x] I’m not disclosing any internal or sensitive information.