From cec20943af77b1c723c560d7282ebecee865e38b Mon Sep 17 00:00:00 2001 From: John Leider Date: Wed, 12 Jun 2024 13:02:33 -0500 Subject: [PATCH] fix(VExpansionPanelTitle): propagate VIcon defaults --- .../VExpansionPanel/VExpansionPanelTitle.tsx | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/packages/vuetify/src/components/VExpansionPanel/VExpansionPanelTitle.tsx b/packages/vuetify/src/components/VExpansionPanel/VExpansionPanelTitle.tsx index 54cc401592c..98df96d9050 100644 --- a/packages/vuetify/src/components/VExpansionPanel/VExpansionPanelTitle.tsx +++ b/packages/vuetify/src/components/VExpansionPanel/VExpansionPanelTitle.tsx @@ -1,5 +1,6 @@ // Components import { VExpansionPanelSymbol } from './shared' +import { VDefaultsProvider } from '@/components/VDefaultsProvider' import { VIcon } from '@/components/VIcon' // Composables @@ -75,6 +76,8 @@ export const VExpansionPanelTitle = genericComponent( readonly: props.readonly, })) + const icon = computed(() => expansionPanel.isSelected.value ? props.collapseIcon : props.expandIcon) + useRender(() => ( ))