@depay/react-dialog
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -74,2 +74,4 @@ import React from 'react'; | ||
this.handler = this.onKeyDown.bind(this); | ||
this.state = { | ||
@@ -108,7 +110,7 @@ open: true, | ||
}); | ||
this.props.document.addEventListener('keydown', this.onKeyDown.bind(this), false); | ||
this.props.document.addEventListener('keydown', this.handler, true); | ||
} | ||
componentWillUnmount() { | ||
this.props.document.addEventListener('keydown', this.onKeyDown.bind(this), false); | ||
this.props.document.removeEventListener('keydown', this.handler, true); | ||
} | ||
@@ -120,7 +122,7 @@ | ||
return ( | ||
React.createElement('div', { className: classNames.join(' '), __self: this, __source: {fileName: _jsxFileName, lineNumber: 54}} | ||
, React.createElement('style', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 55}}, style) | ||
, React.createElement('div', { className: "ReactDialogRow", __self: this, __source: {fileName: _jsxFileName, lineNumber: 56}} | ||
, React.createElement('div', { className: "ReactDialogCell", __self: this, __source: {fileName: _jsxFileName, lineNumber: 57}} | ||
, React.createElement('div', { className: "ReactDialogBackground", onClick: this.onClickBackground.bind(this), __self: this, __source: {fileName: _jsxFileName, lineNumber: 58}} ) | ||
React.createElement('div', { className: classNames.join(' '), __self: this, __source: {fileName: _jsxFileName, lineNumber: 56}} | ||
, React.createElement('style', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 57}}, style) | ||
, React.createElement('div', { className: "ReactDialogRow", __self: this, __source: {fileName: _jsxFileName, lineNumber: 58}} | ||
, React.createElement('div', { className: "ReactDialogCell", __self: this, __source: {fileName: _jsxFileName, lineNumber: 59}} | ||
, React.createElement('div', { className: "ReactDialogBackground", onClick: this.onClickBackground.bind(this), __self: this, __source: {fileName: _jsxFileName, lineNumber: 60}} ) | ||
, this.props.children | ||
@@ -127,0 +129,0 @@ ) |
@@ -82,2 +82,4 @@ (function (global, factory) { | ||
this.handler = this.onKeyDown.bind(this); | ||
this.state = { | ||
@@ -116,7 +118,7 @@ open: true, | ||
}); | ||
this.props.document.addEventListener('keydown', this.onKeyDown.bind(this), false); | ||
this.props.document.addEventListener('keydown', this.handler, true); | ||
} | ||
componentWillUnmount() { | ||
this.props.document.addEventListener('keydown', this.onKeyDown.bind(this), false); | ||
this.props.document.removeEventListener('keydown', this.handler, true); | ||
} | ||
@@ -128,7 +130,7 @@ | ||
return ( | ||
React__default['default'].createElement('div', { className: classNames.join(' '), __self: this, __source: {fileName: _jsxFileName, lineNumber: 54}} | ||
, React__default['default'].createElement('style', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 55}}, style) | ||
, React__default['default'].createElement('div', { className: "ReactDialogRow", __self: this, __source: {fileName: _jsxFileName, lineNumber: 56}} | ||
, React__default['default'].createElement('div', { className: "ReactDialogCell", __self: this, __source: {fileName: _jsxFileName, lineNumber: 57}} | ||
, React__default['default'].createElement('div', { className: "ReactDialogBackground", onClick: this.onClickBackground.bind(this), __self: this, __source: {fileName: _jsxFileName, lineNumber: 58}} ) | ||
React__default['default'].createElement('div', { className: classNames.join(' '), __self: this, __source: {fileName: _jsxFileName, lineNumber: 56}} | ||
, React__default['default'].createElement('style', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 57}}, style) | ||
, React__default['default'].createElement('div', { className: "ReactDialogRow", __self: this, __source: {fileName: _jsxFileName, lineNumber: 58}} | ||
, React__default['default'].createElement('div', { className: "ReactDialogCell", __self: this, __source: {fileName: _jsxFileName, lineNumber: 59}} | ||
, React__default['default'].createElement('div', { className: "ReactDialogBackground", onClick: this.onClickBackground.bind(this), __self: this, __source: {fileName: _jsxFileName, lineNumber: 60}} ) | ||
, this.props.children | ||
@@ -135,0 +137,0 @@ ) |
{ | ||
"name": "@depay/react-dialog", | ||
"moduleName": "ReactDialog", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "A basic dialog component for react.", | ||
@@ -6,0 +6,0 @@ "main": "./dist/umd/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15646
310
0