alexanderwallin / react-player-controls

⏯ Dumb and (re)useful React components for media players.
http://alexanderwallin.github.io/react-player-controls/
ISC License
191 stars 35 forks source link

Pass event to button click handler #43

Closed mwilc0x closed 6 years ago

mwilc0x commented 6 years ago

This change passes the click event along to the handler. This is useful in scenarios where a button might be layered and need to call stopPropagation to prevent any further action.

alexanderwallin commented 6 years ago

This makes perfect sense. Thanks for the PR!

alexanderwallin commented 6 years ago

https://github.com/alexanderwallin/react-player-controls/releases/tag/v0.5.21

mwilc0x commented 6 years ago

Thanks! :)