Skip to content

The <uui-button> component's type property is not passed down to the <button>, making all buttons essentially have a type of "submit". #1054

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

Open
aleksandarmusicki98 opened this issue Mar 27, 2025 · 0 comments
Labels
bug Something isn't working needs triage This issue has not been tested by a team member yet

Comments

@aleksandarmusicki98
Copy link

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

1.12.2

Bug summary

The <uui-button> component does not pass the type property down to the underlying <button> element. As a result, all buttons default to type="submit", which can cause unintended form submissions.

Image

Specifics

No response

Steps to reproduce

Inspect any <uui-button> and you will see issue.

Expected result / actual result

<uui-button> should pass the type property down to the underlying <button> element.

@aleksandarmusicki98 aleksandarmusicki98 added bug Something isn't working needs triage This issue has not been tested by a team member yet labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage This issue has not been tested by a team member yet
Projects
None yet
Development

No branches or pull requests

1 participant