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