@mcurros2/microm 1.1.79-0 → 1.1.80-0
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.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33366,27 +33366,7 @@ function $9e0f0f7fb3fe1bb5$export$4a22575e2f542f1f(props) {
|
|
|
33366
33366
|
setSearchData
|
|
33367
33367
|
]);
|
|
33368
33368
|
const handleSearchFilterInputEnter = (0, $b4te3$react.useCallback)((e)=>{
|
|
33369
|
-
var _a;
|
|
33370
33369
|
const key_code = e.code;
|
|
33371
|
-
// Fix to let escape pass through if there is no dropdown open
|
|
33372
|
-
if (key_code === "Escape") {
|
|
33373
|
-
const dropdown = (_a = filterInputRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("[data-mantine-multiselect-dropdown]");
|
|
33374
|
-
const isMyDropdownOpen = !!dropdown;
|
|
33375
|
-
if (!isMyDropdownOpen) {
|
|
33376
|
-
// FIX: refire escape two times as the Multiselect has focusTrap and messes with the modal
|
|
33377
|
-
const escapeEvent = new KeyboardEvent("keypress", {
|
|
33378
|
-
key: "Escape",
|
|
33379
|
-
bubbles: true
|
|
33380
|
-
});
|
|
33381
|
-
document.dispatchEvent(escapeEvent);
|
|
33382
|
-
const escapeEvent2 = new KeyboardEvent("keypress", {
|
|
33383
|
-
key: "Escape",
|
|
33384
|
-
bubbles: true
|
|
33385
|
-
});
|
|
33386
|
-
document.dispatchEvent(escapeEvent2);
|
|
33387
|
-
return;
|
|
33388
|
-
}
|
|
33389
|
-
}
|
|
33390
33370
|
if (key_code !== "Enter" && key_code !== "NumpadEnter") return;
|
|
33391
33371
|
// Ensure queryText is not empty
|
|
33392
33372
|
if (!queryText.trim()) return;
|
|
@@ -46156,6 +46136,10 @@ const $fd210d71b523c65e$export$4fef1edbf0f012ef = /*#__PURE__*/ (0, $b4te3$react
|
|
|
46156
46136
|
"onCreate"
|
|
46157
46137
|
]);
|
|
46158
46138
|
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
46139
|
+
// Mantine has a bug in thsi component:
|
|
46140
|
+
// When all the items are selected and the multiselect is in a modal and it has autofocus
|
|
46141
|
+
// you will need to press escape two time to close the modal
|
|
46142
|
+
// this is because it uses a popover with closeOnEscape and it traps escape even if the list is not shown
|
|
46159
46143
|
return (0, $b4te3$reactjsxruntime.jsx)("div", {
|
|
46160
46144
|
ref: ref,
|
|
46161
46145
|
style: {
|