0
0
Fork 0

refactor: refs #8304 restore correct classes on QToolbar and add null safety in actions.value check

This commit is contained in:
Jose Antonio Tubau 2025-01-24 11:56:42 +01:00
parent 74eb296285
commit 559bf0db02
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ onMounted(() => {
});
const actionsChildCount = () => {
return !!actions.value.childNodes.length;
return !!actions.value?.childNodes?.length;
};
onBeforeUnmount(() => stateStore.toggleSubToolbar() && hasSubToolbar);
@ -37,7 +37,7 @@ onBeforeUnmount(() => stateStore.toggleSubToolbar() && hasSubToolbar);
<QToolbar
id="subToolbar"
v-show="hasContent || $slots['st-actions'] || $slots['st-data']"
class="full-width sticky"
class="justify-end sticky"
>
<slot name="st-data">
<div id="st-data" :class="{ 'full-width': !actionsChildCount() }">