Skip to content

fix(ui5-button): prevents native behavior when click prevented #11678

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

Merged
merged 4 commits into from
Jun 11, 2025

Conversation

nnaydenow
Copy link
Contributor

Native click behavior triggered by the ui5-button is not suppressed based on the custom event fired by the web component. Although the native click event does not propagate, its default behavior still occurs—even when the custom event is prevented.
With this PR, the native behavior is now correctly prevented when the custom event is prevented.

Fixes: #11653

@nnaydenow nnaydenow requested a review from didip1000 June 6, 2025 07:56
@nnaydenow nnaydenow requested a review from pskelin June 6, 2025 13:38
Copy link
Contributor

@didip1000 didip1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix works but i'd like @tsanislavgatev to look over the changes before submitting.

@didip1000 didip1000 requested a review from tsanislavgatev June 10, 2025 11:47
@nnaydenow nnaydenow merged commit b8ac221 into main Jun 11, 2025
12 checks passed
@nnaydenow nnaydenow deleted the btn-behaviour branch June 11, 2025 07:17
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.12.0-rc.0 🎉

The release is available on v2.12.0-rc.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui5-button]: prevented event does not back-propagate to original
4 participants