ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ToolbarButton fires onClick event even when disabled={true}

Open pankaj-linde opened this issue 4 months ago • 3 comments

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

  1. Render a Toolbar component with a ToolbarButton inside.
  2. Pass disabled={true} to the ToolbarButton.
  3. Attach an onClick handler to the ToolbarButton.
  4. 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.

pankaj-linde avatar Jun 25 '25 05:06 pankaj-linde