mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
fix calendar scroll down on load; bump ui package version
This commit is contained in:
@@ -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