Skip to content

Commit 5d42337

Browse files
committed
fix: tab indicator not updated
1 parent 3ca99ad commit 5d42337

File tree

1 file changed

+4
-4
lines changed
  • packages/app-frontend/src/features/ui/components

1 file changed

+4
-4
lines changed

packages/app-frontend/src/features/ui/components/VueGroup.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export default defineComponent({
7676
setValue: (value) => (model.value = value),
7777
})
7878
79-
const rootEl = ref<null | HTMLElement>(null)
79+
const root = ref<null | HTMLElement>(null)
8080
8181
const updateIndicator = async () => {
8282
await nextTick()
83-
const el = rootEl.value?.querySelector('.selected') as HTMLElement
83+
const el = root.value?.querySelector('.selected') as HTMLElement
8484
if (!el) {
8585
indicatorStyle.value = null
8686
return
@@ -92,7 +92,7 @@ export default defineComponent({
9292
height: el.offsetHeight,
9393
}
9494
let parent = el.offsetParent as HTMLElement
95-
while (parent && parent !== rootEl.value) {
95+
while (parent && parent !== root.value) {
9696
offset.top += parent.offsetTop
9797
offset.left += parent.offsetLeft
9898
parent = parent.offsetParent as HTMLElement
@@ -122,7 +122,7 @@ export default defineComponent({
122122
})
123123
124124
return {
125-
rootEl,
125+
root,
126126
indicatorStyle,
127127
updateIndicator,
128128
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy