You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Forms that have this audio player rendered, will trigger form submission when one of the main control buttons are clicked.
Warning: You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.
Can we have the type specified as "button" to prevent this from happening? e.stopPropagation() will not prevent this behavior from happening.
Package version: "react-h5-audio-player": "^3.0.4",
React version: "react": "^16.8.2",
Browser and its version: Chromium
OS and its version: macOS Mojave 10.14.6 (18G95)
The text was updated successfully, but these errors were encountered:
Describe the bug
Forms that have this audio player rendered, will trigger form submission when one of the main control buttons are clicked.
Can we have the type specified as
"button"
to prevent this from happening?e.stopPropagation()
will not prevent this behavior from happening.Suggested Fix:
Environment
Package version:
"react-h5-audio-player": "^3.0.4",
React version:
"react": "^16.8.2",
Browser and its version: Chromium
OS and its version: macOS Mojave 10.14.6 (18G95)
The text was updated successfully, but these errors were encountered: