Browse Source

Stop event propagation after IconButton onClick

closed-social-glitch-2
Eugen 8 years ago
committed by GitHub
parent
commit
e906677092
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/assets/javascripts/components/components/icon_button.jsx

+ 1
- 0
app/assets/javascripts/components/components/icon_button.jsx View File

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

Loading…
Cancel
Save