Skip to content

Commit

Permalink
fix(SUP-39294): Page refreshes after clicking on player buttons (#49)
Browse files Browse the repository at this point in the history
issue:
When embed player in a form element and click on the plugin button, the page refreshes.

solution:
add type=button on the plugin button

solves SUP-39294
  • Loading branch information
Tzipi-kaltura authored Nov 15, 2023
1 parent d57821b commit a123ed1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/plugin-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const PluginButton = withText(translates)(({isActive, setRef, ...otherPro
return (
<Tooltip label={otherProps.label} type="bottom">
<button
type="button"
data-testid={'playlist_pluginButton'}
aria-label={otherProps.label}
className={[ui.style.upperBarIcon, styles.pluginButton, isActive ? styles.active : ''].join(' ')}
Expand Down

0 comments on commit a123ed1

Please sign in to comment.