Skip to content

Commit

Permalink
Refactor #4231 - For Accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 2, 2023
1 parent 38faf56 commit 1e7750d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/accordion/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<component v-if="tab.children && tab.children.header" :is="tab.children.header"></component>
</a>
</div>
<transition name="p-toggleable-content">
<transition name="p-toggleable-content" v-bind="getTabPT(tab, 'transition', i)">
<div
v-if="lazy ? isTabActive(i) : true"
v-show="lazy ? true : isTabActive(i)"
Expand Down
4 changes: 4 additions & 0 deletions components/lib/accordiontab/AccordionTab.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export interface AccordionTabPassThroughOptions {
* Used to pass attributes to the content's DOM element.
*/
content?: AccordionTabPassThroughOptionType;
/**
* Used to control Vue Transition API.
*/
transition?: any;
}

/**
Expand Down

0 comments on commit 1e7750d

Please sign in to comment.