@univerjs/sheets-data-validation-ui 0.4.1-nightly.202410221606 → 0.4.1-nightly.202410241606

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/lib/es/index.js CHANGED
@@ -529,7 +529,7 @@ function DateDropdown(props) {
529
529
  workbook,
530
530
  interceptValue: dateStr.replace("Z", "").replace("T", " "),
531
531
  t: CellValueType.NUMBER
532
- }, rule) ? (await commandService.executeCommand(SetCellEditVisibleOperation.id, {
532
+ }, rule) ? (hideFn(), await commandService.executeCommand(SetCellEditVisibleOperation.id, {
533
533
  visible: !1,
534
534
  eventType: DeviceInputEventType.Keyboard,
535
535
  unitId,
@@ -555,7 +555,7 @@ function DateDropdown(props) {
555
555
  }
556
556
  }
557
557
  }
558
- }), hideFn()) : rejectInputController.showReject(validator.getRuleFinalError(rule));
558
+ })) : rejectInputController.showReject(validator.getRuleFinalError(rule));
559
559
  }, "handleSave");
560
560
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.dvDateDropdown, children: [
561
561
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -1033,12 +1033,12 @@ function ListDropDown(props) {
1033
1033
  keycode: KeyCode.ESC,
1034
1034
  eventType: DeviceInputEventType.Keyboard,
1035
1035
  unitId
1036
- }), await commandService.executeCommand(SetCellEditVisibleOperation.id, {
1036
+ }), setLocalValue(str), multiple || hideFn(), editorBridgeService.isVisible().visible && await commandService.executeCommand(SetCellEditVisibleOperation.id, {
1037
1037
  visible: !1,
1038
1038
  eventType: DeviceInputEventType.Keyboard,
1039
1039
  unitId,
1040
1040
  keycode: KeyCode.ESC
1041
- }), commandService.executeCommand(SetRangeValuesCommand.id, params), setLocalValue(str), multiple || hideFn();
1041
+ }), commandService.executeCommand(SetRangeValuesCommand.id, params);
1042
1042
  }, "onChange"),
1043
1043
  options,
1044
1044
  onEdit: handleEdit,