You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Vue3 and I would like to change the tab value programmatically so I bound the Tab value to a reactive variable which changes successfully and is aligned with the TabsTrigger values.
for example:
<script setup>
const currentTab = ref('pomodoro');
< some watcher function to update the currentTab var which works to update it just fine, request if needed!>
</script>
Pomodoro
Short Break
Long Break
using this makes the tab completed unselected on the first render and i have to click on one of the tabs to show its content
when the currentTab value is updated programatically, the tabs remain as it was (eg. currentTab changed to 'shortbreak', but the actual tab is still on 'pomodoro')
How can i go about resolving this? I truly appreciate any help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Vue3 and I would like to change the tab value programmatically so I bound the Tab value to a reactive variable which changes successfully and is aligned with the TabsTrigger values.
for example:
<script setup> const currentTab = ref('pomodoro'); < some watcher function to update the currentTab var which works to update it just fine, request if needed!> </script> Pomodoro Short Break Long BreakHow can i go about resolving this? I truly appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions