@hexure/ui 1.13.35 → 1.13.36

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/cjs/index.js CHANGED
@@ -1183,6 +1183,12 @@ onChange = () => { }, style, }) => {
1183
1183
  setSelectedYear(d.year().toString());
1184
1184
  setDDate(d);
1185
1185
  }
1186
+ else {
1187
+ setSelectedDay('');
1188
+ setSelectedMonth('');
1189
+ setSelectedYear('');
1190
+ setDDate(dayjs(date || undefined));
1191
+ }
1186
1192
  }, [date]);
1187
1193
  React.useEffect(() => {
1188
1194
  if (selectedDay && selectedMonth && selectedYear) {