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
How can I assign an ID to a tab so that I can scroll directly to it?
Currently, I’m working around this by giving the div inside the slot (i.e. the tab content) an ID. When the tab is opened, I scroll to that ID manually.
<template>
<UAccordion
v-model="currentOpen"
:ui="accordionStyle"
:items="items"
>
<template #component="{ item }">
<component
:is="getComponent((item as CustomAccordionItem).componentName)"
:id="(item as CustomAccordionItem).sectionKey"
:section-key="(item as CustomAccordionItem).sectionKey"
@section-mounted="sectionMounted"
/>
</template>
</UAccordion>
</template>
did i miss something?
Additional context
No response
The text was updated successfully, but these errors were encountered:
Description
How can I assign an ID to a tab so that I can scroll directly to it?
Currently, I’m working around this by giving the div inside the slot (i.e. the tab content) an ID. When the tab is opened, I scroll to that ID manually.
did i miss something?
Additional context
No response
The text was updated successfully, but these errors were encountered: