sprintify-ui 0.0.158 → 0.0.159

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.
@@ -10240,7 +10240,7 @@ const Sm = { class: "base-date-picker relative" }, Em = { class: "pointer-events
10240
10240
  function b() {
10241
10241
  if (v) {
10242
10242
  if (!l.value) {
10243
- v.clear();
10243
+ v._selectedDateObj && v.clear();
10244
10244
  return;
10245
10245
  }
10246
10246
  v.setDate(l.value, !1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.158",
3
+ "version": "0.0.159",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -213,7 +213,9 @@ function setPickerDate() {
213
213
  }
214
214
 
215
215
  if (!modelValueFormatted.value) {
216
- picker.clear();
216
+ if (picker._selectedDateObj) {
217
+ picker.clear();
218
+ }
217
219
  return;
218
220
  }
219
221