1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-27 14:29:03 +09:00

Stop event propagation after IconButton onClick

This commit is contained in:
Eugen 2016-09-16 11:20:39 +02:00 committed by GitHub
parent 4f25e3d042
commit e906677092

View File

@ -22,6 +22,7 @@ const IconButton = React.createClass({
handleClick (e) { handleClick (e) {
e.preventDefault(); e.preventDefault();
this.props.onClick(); this.props.onClick();
e.stopPropagation();
}, },
render () { render () {