Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1285 from metasfresh/dev-1178
Browse files Browse the repository at this point in the history
Fixes QuickActionsContextShortcuts not being available
  • Loading branch information
teosarca authored Oct 20, 2017
2 parents b2a887d + a3611cd commit 4744b0d
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/components/shortcuts/QuickActionsContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import React, { Component } from 'react';
import { Shortcuts } from 'react-shortcuts';

class QuickActionsContextShortcuts extends Component {
constructor(props){
super(props);
}
handleShortcuts = (action, event) => {
const {handleClick, onClick} = this.props;

Expand All @@ -22,16 +19,17 @@ class QuickActionsContextShortcuts extends Component {

render() {
return (
<Shortcuts
name="QUICK_ACTIONS"
handler = { this.handleShortcuts }
targetNodeSelector = "body"
isolate = { true }
global = { true }
preventDefault = { true }
stopPropagation = { true }
/>
)
<Shortcuts
name="QUICK_ACTIONS"
handler={this.handleShortcuts}
targetNodeSelector = "body"
isolate
global
preventDefault
stopPropagation
alwaysFireHandler
/>
);
}
}

Expand Down

0 comments on commit 4744b0d

Please sign in to comment.