Floating android-style context trigger on tracklists

This commit is contained in:
James Barnsley
2017-03-02 07:55:28 +13:00
parent 6bf76be853
commit 0aa336eb33
3 changed files with 45 additions and 5 deletions

View File

@ -52,8 +52,8 @@ class ContextMenu extends React.Component{
}
handleClick(e){
// if we click outside of the context menu, kill it
if ($(e.target).closest('.context-menu').length <= 0){
// if we click outside of the context menu or context menu trigger, kill it
if ($(e.target).closest('.context-menu').length <= 0 && $(e.target).closest('.context-menu-trigger').length <= 0){
this.props.uiActions.hideContextMenu()
}
}