fix calendar scroll down on load; bump ui package version

This commit is contained in:
Gregor Vostrak
2026-03-29 23:02:22 +02:00
parent 3d26fcaefe
commit e2f859be27
2 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@solidtime/ui",
"version": "0.0.18",
"version": "0.0.19",
"description": "Package containing the solidtime ui components",
"main": "./dist/solidtime-ui-lib.umd.cjs",
"module": "./dist/solidtime-ui-lib.js",

View File

@@ -314,6 +314,18 @@ watch(
{ deep: true }
);
let hasScrolledOnLoad = false;
watch(
() => props.loading,
(loading) => {
if (!loading && !hasScrolledOnLoad) {
hasScrolledOnLoad = true;
scrollToCurrentTime();
}
}
);
onMounted(() => {
scrollToCurrentTime();
emitDatesChange();