Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-keybinding-component

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-keybinding-component - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

dist/react-keybinding-component.js

@@ -55,3 +55,3 @@ 'use strict';

value: function componentWillUnmount() {
this.props.target.removeEventListener(this.props.type, this.onKey);
if (typeof this.props.target === 'string') document.querySelector(this.props.target).removeEventListener(this.props.type, this.onKey);else if (_typeof(this.props.target) === 'object') this.props.target.removeEventListener(this.props.type, this.onKey);
}

@@ -58,0 +58,0 @@ }]);

@@ -29,3 +29,4 @@ import React, { Component } from 'react';

componentWillUnmount() {
this.props.target.removeEventListener(this.props.type, this.onKey);
if(typeof this.props.target === 'string') document.querySelector(this.props.target).removeEventListener(this.props.type, this.onKey);
else if(typeof this.props.target === 'object') this.props.target.removeEventListener(this.props.type, this.onKey);
}

@@ -32,0 +33,0 @@ }

{
"name": "react-keybinding-component",
"version": "0.3.1",
"version": "0.3.2",
"description": "A React keybinding component, usable with es6, no mixin",

@@ -5,0 +5,0 @@ "main": "dist/react-keybinding-component.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc