diff options
author | Eugen <eugen@zeonfederated.com> | 2016-09-16 11:20:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 11:20:39 +0200 |
commit | e906677092ca2f38abd918436ea5967c096d555f (patch) | |
tree | bb7367c191077868d8ba870726433b911d230860 | |
parent | 4f25e3d042fa92ba39cd3994c1de72193b2b9eb0 (diff) |
Stop event propagation after IconButton onClick
-rw-r--r-- | app/assets/javascripts/components/components/icon_button.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/components/icon_button.jsx b/app/assets/javascripts/components/components/icon_button.jsx index b41752890..b7f2366ba 100644 --- a/app/assets/javascripts/components/components/icon_button.jsx +++ b/app/assets/javascripts/components/components/icon_button.jsx @@ -22,6 +22,7 @@ const IconButton = React.createClass({ handleClick (e) { e.preventDefault(); this.props.onClick(); + e.stopPropagation(); }, render () { |