Skip to content
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

fix: tooltip button type shouldn't be submit #341

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

Viczei
Copy link
Contributor

@Viczei Viczei commented Nov 8, 2024

Hello,

The default type on a button is "submit". This cause problems when the tooltip is used in a form since clicking on the tooltip will cause a submit of the form.
Just setting the type on the button to type="button" will fix this.

@revolunet revolunet merged commit 05df693 into codegouvfr:main Nov 8, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants