x-ui-design 0.7.58 → 0.7.59

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.esm.js CHANGED
@@ -2643,8 +2643,10 @@ const RangePicker = ({
2643
2643
  onClick: e => {
2644
2644
  e.preventDefault();
2645
2645
  e.stopPropagation();
2646
- setIsOpen(!isOpen);
2647
- onOpenChange?.(!isOpen);
2646
+ if (!isOpen) {
2647
+ setIsOpen(!isOpen);
2648
+ onOpenChange?.(!isOpen);
2649
+ }
2648
2650
  }
2649
2651
  }, prefix, /*#__PURE__*/React.createElement("input", {
2650
2652
  readOnly: inputReadOnly,