stop propagation of click events on un-hiding the spoiler
This commit is contained in:
parent
eddac4b188
commit
d0f78e9d44
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,12 @@ module.exports = React.createClass({
|
|||
};
|
||||
},
|
||||
|
||||
toggleVisible() {
|
||||
toggleVisible(e) {
|
||||
if (!this.state.visible) {
|
||||
// we are un-blurring, we don't want this click to propagate to potential child pills
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
this.setState({ visible: !this.state.visible });
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue