Skip to content

Commit d01e2fb

Browse files
fix: [CollapsibleContent] type
1 parent 7e4b95b commit d01e2fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-primitives/src/collapsible/CollapsibleContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { computed, nextTick, onMounted, type Ref, shallowRef } from 'vue'
1+
import { computed, type CSSProperties, nextTick, onMounted, type Ref, shallowRef } from 'vue'
22
import { usePresence } from '../presence/index.ts'
33
import { useCollapsibleContext } from './CollapsibleRoot.ts'
44

@@ -45,7 +45,7 @@ export function useCollapsibleContent($el: Ref<HTMLElement | undefined>, props:
4545
// when closing we delay `present` to retrieve dimensions before closing
4646
const isOpen = computed(() => context.open.value || isPresent.value)
4747

48-
const blockAnimationStyles = shallowRef<Partial<CSSStyleDeclaration> | undefined>(isOpen.value
48+
const blockAnimationStyles = shallowRef<CSSProperties | undefined>(isOpen.value
4949
? {
5050
transitionDuration: '0s !important',
5151
animationName: 'none !important',

0 commit comments

Comments
 (0)