Skip to content

fix(search): Use type='button' in search elements to avoid submitting forms #93401

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 2 commits into from
Jun 12, 2025

Conversation

malwilley
Copy link
Member

Fixes JAVASCRIPT-31KR (user submitted bug)

The metric alert form was erroneously submitting is some rare cases. Adding type="button" to all buttons in the component to prevent them from submitting the form.

@malwilley malwilley requested a review from a team June 12, 2025 01:05
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 12, 2025
@malwilley malwilley merged commit f7e2152 into master Jun 12, 2025
42 checks passed
@malwilley malwilley deleted the malwilley/fix/search-form-submit branch June 12, 2025 15:56
vishnupsatish pushed a commit that referenced this pull request Jun 12, 2025
… forms (#93401)

The metric alert form was erroneously submitting is some rare cases.
Adding `type="button"` to all buttons in the component to prevent them
from submitting the form.
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
… forms (#93401)

The metric alert form was erroneously submitting is some rare cases.
Adding `type="button"` to all buttons in the component to prevent them
from submitting the form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants