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(ui): Avoid submitting form if player is inside form #4866

Merged
merged 3 commits into from
Jan 3, 2023

Conversation

WINOFFRG
Copy link
Contributor

@WINOFFRG WINOFFRG commented Jan 3, 2023

fixes #4861

button element by default has type set to submit which can interfere with forms.

@avelad avelad added type: bug Something isn't working correctly component: UI The issue involves the Shaka Player UI priority: P2 Smaller impact or easy workaround labels Jan 3, 2023
@avelad avelad added this to the v4.4 milestone Jan 3, 2023
lib/util/dom_utils.js Outdated Show resolved Hide resolved
@avelad avelad requested review from joeyparrish and theodab January 3, 2023 08:15
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

Incremental code coverage: 100.00%

@joeyparrish joeyparrish changed the title fix(ui): Adding 'button' type on button element fix(ui): Avoid submitting form if player is inside form Jan 3, 2023
@joeyparrish joeyparrish merged commit da21850 into shaka-project:main Jan 3, 2023
joeyparrish pushed a commit that referenced this pull request Jan 13, 2023
`button` element by default has `type` set to `submit` which can
interfere with forms.

Fixes #4861
joeyparrish pushed a commit that referenced this pull request Jan 13, 2023
`button` element by default has `type` set to `submit` which can
interfere with forms.

Fixes #4861
joeyparrish pushed a commit that referenced this pull request Jan 13, 2023
`button` element by default has `type` set to `submit` which can
interfere with forms.

Fixes #4861
joeyparrish pushed a commit that referenced this pull request Jan 13, 2023
`button` element by default has `type` set to `submit` which can
interfere with forms.

Fixes #4861
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Feb 8, 2023
…t#4866)

`button` element by default has `type` set to `submit` which can
interfere with forms.

Fixes shaka-project#4861
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: UI The issue involves the Shaka Player UI priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Control buttons should have type "button"
3 participants