Skip to content

Commit 103ca87

Browse files
fix(CollapsibleRoot): ensure open does not trigger when disabled (#1898)
1 parent 592e698 commit 103ca87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/Collapsible/CollapsibleRoot.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ provideCollapsibleRootContext({
6464
open,
6565
unmountOnHide,
6666
onOpenToggle: () => {
67+
if (disabled.value)
68+
return
69+
6770
open.value = !open.value
6871
},
6972
})

0 commit comments

Comments
 (0)