@streamscloud/kit 0.2.40 → 0.2.41-1778490725788
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.
|
@@ -10,7 +10,7 @@ const id = randomString(10);
|
|
|
10
10
|
const localization = new DatetimePickerLocalization();
|
|
11
11
|
let timePartHolder;
|
|
12
12
|
let showClearButton = $state(false);
|
|
13
|
-
let fpInstance = $state(undefined);
|
|
13
|
+
let fpInstance = $state.raw(undefined);
|
|
14
14
|
let picker;
|
|
15
15
|
const preprocessInitialValue = (datetime) => {
|
|
16
16
|
let date = undefined;
|
|
@@ -56,6 +56,7 @@ const getDefaultPlaceholder = () => {
|
|
|
56
56
|
};
|
|
57
57
|
const initPicker = (node) => {
|
|
58
58
|
picker = node;
|
|
59
|
+
applyFlatpickrTheme(AppTheme.isDarkMode);
|
|
59
60
|
const opts = pickerOptions ?? {};
|
|
60
61
|
const mode = opts.mode ?? 'datetime';
|
|
61
62
|
const noValueHandler = opts.noValueHandler ?? 'reset-to-now';
|