@likable-hair/svelte 3.0.23 → 3.0.24

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.
@@ -87,6 +87,8 @@ function handleInputChange(event) {
87
87
  month: Number(oneBasedMonth),
88
88
  year: Number(year)
89
89
  }).toJSDate();
90
+ } else {
91
+ selectedDate = void 0;
90
92
  }
91
93
  }
92
94
  }, 30);
@@ -105,6 +107,14 @@ function handleYearSelect() {
105
107
  function handleMonthSelect() {
106
108
  mask.value = "";
107
109
  }
110
+ $:
111
+ if (!!selectedDate) {
112
+ setTimeout(() => {
113
+ if (!!selectedDate) {
114
+ mask.value = DateTime.fromJSDate(selectedDate).toFormat(pattern);
115
+ }
116
+ }, 30);
117
+ }
108
118
  </script>
109
119
 
110
120
  <MediaQuery let:mAndDown>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "3.0.23",
4
+ "version": "3.0.24",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",