22 <div
33 v-bind =" ouiaProps"
44 :id =" panelId"
5- ref =" panel "
5+ ref =" panelRef "
66 :class =" [styles.drawerPanel, {
77 [styles.modifiers.resizable]: resizable,
88 [styles.modifiers.noBorder]: noBorder,
@@ -104,7 +104,7 @@ defineSlots<{
104104 default? : (props ? : Record <never , never >) => any ;
105105}>();
106106
107- const panel = useTemplateRef (' panel ' );
107+ const panel = useTemplateRef (' panelRef ' );
108108const panelId = computed (() => props .id || getUniqueId (' pf-drawer-panel-' ));
109109
110110const drawerProvide = inject (DrawerKey );
@@ -115,7 +115,7 @@ if (!drawerProvide) {
115115
116116const { el : drawerRef, position, expanded, display, inline } = drawerProvide ;
117117const drawerContentRef = inject (DrawerContentRefKey );
118- const splitterRef = useTemplateRef (' splitterRef' );
118+ const splitter = useTemplateRef (' splitterRef' );
119119
120120let isResizing: boolean | null = null ;
121121const panelSize: Ref <number | undefined > = ref ();
@@ -130,7 +130,7 @@ function calcValueNow() {
130130 const drawerContentEl = resolveOverridableComponent (drawerContentRef ?.value );
131131
132132 const paR = panel .value ?.getBoundingClientRect () ?? { left: 0 , right: 0 };
133- const spR = splitterRef .value ?.getBoundingClientRect () ?? { left: 0 , right: 0 , top: 0 , bottom: 0 };
133+ const spR = splitter .value ?.getBoundingClientRect () ?? { left: 0 , right: 0 , top: 0 , bottom: 0 };
134134 const drR = drawerRef .value ?.getBoundingClientRect () ?? { left: 0 , right: 0 };
135135 const dCR = drawerContentEl ?.getBoundingClientRect () ?? { left: 0 , right: 0 , top: 0 , bottom: 0 };
136136
0 commit comments