brilliant idea
This commit is contained in:
parent
6d94cfb8fe
commit
29de7a1d5d
1 changed files with 2 additions and 1 deletions
|
|
@ -322,7 +322,8 @@ export default {
|
|||
const diveToTopLevel = () => scrollTo(new Set([currentAncestors.value[0].id]))
|
||||
|
||||
watch(focusedId, async (neu, old) => {
|
||||
if (neu) scrollTo(new Set([neu]))
|
||||
// Ignoring initial update (null -> id) since that is handled by scroll compensation
|
||||
if (old && neu) scrollTo(new Set([neu]))
|
||||
})
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue