react-keybinding-component
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -47,3 +47,3 @@ 'use strict'; | ||
if (this.props.stopPropagation) e.stopPropagation(); | ||
if (!(this.props.preventInputConflict && e.target.tagName.toLowerCase().indexOf(this.blacklistTargets) > -1)) this.props.onKey(e); | ||
if (!(this.props.preventInputConflict && this.blacklistTargets.indexOf(e.target.tagName.toLowerCase()) > -1)) this.props.onKey(e); | ||
} | ||
@@ -50,0 +50,0 @@ }, { |
@@ -0,0 +0,0 @@ const gulp = require('gulp'); |
@@ -22,3 +22,3 @@ import React, { Component } from 'react'; | ||
if(this.props.stopPropagation) e.stopPropagation(); | ||
if(!(this.props.preventInputConflict && (e.target.tagName.toLowerCase().indexOf(this.blacklistTargets) > -1))) this.props.onKey(e); | ||
if(!(this.props.preventInputConflict && (this.blacklistTargets.indexOf(e.target.tagName.toLowerCase()) > -1))) this.props.onKey(e); | ||
} | ||
@@ -25,0 +25,0 @@ |
{ | ||
"name": "react-keybinding-component", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A React keybinding component, usable with es6, no mixin", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-keybinding-component.js", |
@@ -0,0 +0,0 @@ # react-keybinding-component |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10552