@luminati-io/uikit 6.2.4 → 6.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40202,7 +40202,7 @@ var ModalButton = function ModalButton(_ref4) {
|
|
|
40202
40202
|
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.blur();
|
|
40203
40203
|
if (!hotKey) return;
|
|
40204
40204
|
var handle_key_press = function handle_key_press(e) {
|
|
40205
|
-
if (e.key.toLowerCase() == hotKey.toLowerCase()) onClick();
|
|
40205
|
+
if (e.key.toLowerCase() == hotKey.toLowerCase()) onClick === null || onClick === void 0 || onClick();
|
|
40206
40206
|
};
|
|
40207
40207
|
window.addEventListener('keydown', handle_key_press);
|
|
40208
40208
|
return function () {
|
|
@@ -40210,7 +40210,6 @@ var ModalButton = function ModalButton(_ref4) {
|
|
|
40210
40210
|
};
|
|
40211
40211
|
}, []);
|
|
40212
40212
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_button__WEBPACK_IMPORTED_MODULE_3__.Button, _extends({
|
|
40213
|
-
size: "sm",
|
|
40214
40213
|
onClick: onClick,
|
|
40215
40214
|
iconPlacement: "right",
|
|
40216
40215
|
icon: hotKey && icon
|