Skip to content

Commit

Permalink
Fix HotKeys passing down component prop to its children
Browse files Browse the repository at this point in the history
  • Loading branch information
greena13 committed Jan 17, 2019
1 parent f121435 commit 2bcc7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HotKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import withHotKeys from './withHotKeys';
class HotKeysWrapper extends Component {

render() {
const {hotKeys, innerRef, ...remainingProps} = this.props;
const {hotKeys, innerRef, component, ...remainingProps} = this.props;

const DefaultComponent = remainingProps.component || Configuration.option('defaultComponent');
const DefaultComponent = component || Configuration.option('defaultComponent');

return (
<DefaultComponent { ... { ...hotKeys, ref: innerRef, ...remainingProps } } />
Expand Down

0 comments on commit 2bcc7ea

Please sign in to comment.