Skip to content

Commit

Permalink
fix kobotoolbox#909 more actions dropdown remains open after hovering…
Browse files Browse the repository at this point in the history
… out and back
  • Loading branch information
pmusaraj committed Sep 2, 2016
1 parent 31b42b6 commit 7aa7338
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jsapp/js/components/assetrow.es6
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ var AssetRow = React.createClass({
preventDefault (evt) {
evt.preventDefault();
},
clearDropdown () {
$(this.getDOMNode()).find('.mdl-menu__container.is-visible').removeClass('is-visible');
},
render () {
var selfowned = this.props.owner__username === this.props.currentUsername;
// var perm = this.props.perm;
Expand Down Expand Up @@ -82,6 +85,7 @@ var AssetRow = React.createClass({
}}
className="mdl-grid"
key={this.props.uid}
onMouseLeave={this.clearDropdown}
>
<bem.AssetRow__cell
m={'asset-details'}
Expand Down

0 comments on commit 7aa7338

Please sign in to comment.