mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
fix calendar scroll down on load; bump ui package version
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -314,6 +314,18 @@ watch(
|
||||
{ deep: true }
|
||||
);
|
||||
|
||||
let hasScrolledOnLoad = false;
|
||||
|
||||
watch(
|
||||
() => props.loading,
|
||||
(loading) => {
|
||||
if (!loading && !hasScrolledOnLoad) {
|
||||
hasScrolledOnLoad = true;
|
||||
scrollToCurrentTime();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
scrollToCurrentTime();
|
||||
emitDatesChange();
|
||||
|
||||
Reference in New Issue
Block a user