Skip to content

Commit

Permalink
fix(Accordion): add forceMount prop (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-hup authored Oct 14, 2024
1 parent b32c353 commit eb06fd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/radix-vue/src/Accordion/AccordionContent.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { PrimitiveProps } from '@/Primitive'
import type { CollapsibleContentProps } from '../Collapsible'
export interface AccordionContentProps extends PrimitiveProps {}
export interface AccordionContentProps extends CollapsibleContentProps {}
</script>

<script setup lang="ts">
Expand All @@ -23,6 +23,7 @@ useForwardExpose()
role="region"
:hidden="!itemContext.open.value"
:as-child="props.asChild"
:force-mount="props.forceMount"
:aria-labelledby="itemContext.triggerId"
:data-state="itemContext.dataState.value"
:data-disabled="itemContext.dataDisabled.value"
Expand Down

0 comments on commit eb06fd2

Please sign in to comment.