@os-design/core
Advanced tools
Comparing version 1.0.178 to 1.0.179
@@ -87,3 +87,6 @@ "use strict"; | ||
var keyDownHandler = (0, _react2.useCallback)(function (e) { | ||
if (e.key === 'Escape') onClose(); | ||
if (e.key === 'Escape') { | ||
e.stopPropagation(); | ||
onClose(); | ||
} | ||
}, [onClose]); | ||
@@ -90,0 +93,0 @@ if (!mounted) return null; |
@@ -155,3 +155,6 @@ "use strict"; | ||
var keyDownHandler = (0, _react2.useCallback)(function (e) { | ||
if (e.key === 'Escape') onClose(); | ||
if (e.key === 'Escape') { | ||
e.stopPropagation(); | ||
onClose(); | ||
} | ||
}, [onClose]); | ||
@@ -158,0 +161,0 @@ var ariaLabelledBy = (0, _react2.useMemo)(function () { |
@@ -100,3 +100,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
const keyDownHandler = useCallback(e => { | ||
if (e.key === 'Escape') onClose(); | ||
if (e.key === 'Escape') { | ||
e.stopPropagation(); | ||
onClose(); | ||
} | ||
}, [onClose]); | ||
@@ -103,0 +106,0 @@ if (!mounted) return null; |
@@ -196,3 +196,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
const keyDownHandler = useCallback(e => { | ||
if (e.key === 'Escape') onClose(); | ||
if (e.key === 'Escape') { | ||
e.stopPropagation(); | ||
onClose(); | ||
} | ||
}, [onClose]); | ||
@@ -199,0 +202,0 @@ const ariaLabelledBy = useMemo(() => header === undefined ? titleId : undefined, [header, titleId]); |
{ | ||
"name": "@os-design/core", | ||
"version": "1.0.178", | ||
"version": "1.0.179", | ||
"license": "UNLICENSED", | ||
@@ -61,3 +61,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git", | ||
}, | ||
"gitHead": "784006b6b4a3c36fe8976d23907c0a69a84f8bc8" | ||
"gitHead": "8a8cd2b1472e725aac24204c21e01d61ce5aa11e" | ||
} |
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
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
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
1981462
17158