@plasmicpkgs/antd5 0.0.76 → 0.0.78

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/antd.esm.js CHANGED
@@ -4100,11 +4100,11 @@ function AntdDatePicker(props) {
4100
4100
  (_a = props.onChange) == null ? void 0 : _a.call(props, value !== null ? value.toISOString() : null);
4101
4101
  },
4102
4102
  open,
4103
- onOpenChange: (open2) => {
4104
- if (open2 && window.innerWidth < 500) {
4103
+ onOpenChange: (_open) => {
4104
+ if (_open && window.innerWidth < 500) {
4105
4105
  nativeInput.current.showPicker();
4106
4106
  } else {
4107
- setOpen(open2);
4107
+ setOpen(_open);
4108
4108
  }
4109
4109
  }
4110
4110
  })
@@ -4114,7 +4114,7 @@ function AntdDatePicker(props) {
4114
4114
  hidden: true,
4115
4115
  ref: nativeInput,
4116
4116
  type: props.showTime ? "datetime-local" : "date",
4117
- value: strValue,
4117
+ value: strValue || "",
4118
4118
  onChange: (e) => {
4119
4119
  props.onChange(e.target.value);
4120
4120
  }