@linzjs/step-ag-grid 6.0.0 → 6.1.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.js
CHANGED
|
@@ -1395,15 +1395,15 @@ var ControlledMenuFr = function (_a, externalRef) {
|
|
|
1395
1395
|
var lastInputEl = inputEls[inputEls.length - 1];
|
|
1396
1396
|
if (activeElement !== firstInputEl && activeElement !== lastInputEl)
|
|
1397
1397
|
return;
|
|
1398
|
-
var
|
|
1398
|
+
var isTextArea = activeElement.nodeName === "TEXTAREA";
|
|
1399
|
+
var suppressEnterAutoSave = activeElement.getAttribute("data-disableEnterAutoSave") || isTextArea;
|
|
1399
1400
|
var invokeSave = function (reason) {
|
|
1400
1401
|
var _a, _b;
|
|
1401
|
-
if (!(saveButtonRef === null || saveButtonRef === void 0 ? void 0 : saveButtonRef.current)
|
|
1402
|
+
if (!(saveButtonRef === null || saveButtonRef === void 0 ? void 0 : saveButtonRef.current))
|
|
1402
1403
|
return;
|
|
1403
1404
|
(_a = saveButtonRef.current) === null || _a === void 0 ? void 0 : _a.setAttribute("data-reason", reason);
|
|
1404
1405
|
(_b = saveButtonRef === null || saveButtonRef === void 0 ? void 0 : saveButtonRef.current) === null || _b === void 0 ? void 0 : _b.click();
|
|
1405
1406
|
};
|
|
1406
|
-
var isTextArea = activeElement.nodeName === "TEXTAREA";
|
|
1407
1407
|
switch (activeElement.nodeName) {
|
|
1408
1408
|
case "TEXTAREA":
|
|
1409
1409
|
case "INPUT": {
|
|
@@ -1420,7 +1420,7 @@ var ControlledMenuFr = function (_a, externalRef) {
|
|
|
1420
1420
|
invokeSave(ev.shiftKey ? CloseReason.TAB_BACKWARD : CloseReason.TAB_FORWARD);
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
if (ev.key === "Enter" && !
|
|
1423
|
+
if (ev.key === "Enter" && !suppressEnterAutoSave) {
|
|
1424
1424
|
ev.preventDefault();
|
|
1425
1425
|
ev.stopPropagation();
|
|
1426
1426
|
if (isDown) {
|
|
@@ -1443,7 +1443,7 @@ var ControlledMenuFr = function (_a, externalRef) {
|
|
|
1443
1443
|
lastTabDownEl.current == activeElement && invokeSave(CloseReason.TAB_FORWARD);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
if (ev.key === "Enter" && !
|
|
1446
|
+
if (ev.key === "Enter" && !suppressEnterAutoSave) {
|
|
1447
1447
|
ev.preventDefault();
|
|
1448
1448
|
ev.stopPropagation();
|
|
1449
1449
|
if (isDown) {
|