Skip to content
Snippets Groups Projects
Commit a61f386e authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: reset activeIndex after choices have been updated

parent 30ee7a82
No related branches found
No related tags found
No related merge requests found
......@@ -225,6 +225,13 @@ watchEffect(() => {
activeIndex.value = clamp(activeIndex.value, 0, lastChoiceIndex.value)
})
watch(
() => props.choices,
() => {
activeIndex.value = 0
},
)
watch(hasFocus, (hasFocus, hadFocus) => {
if (hasFocus && !hadFocus) {
open()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment