MT#63758 Fix 'ResizeObserver loop' Error

The issue was caused by a conditional(v-if=!menuMinimized) inside the <q-toolbar>.

menuMinimized property controls whether the side menu is collapsed
or expanded and affects multiple components.

When it changes (on hover or pin toggle), the layout width updates,
which can trigger the ResizeObserver.

Using v-if was recreating/destroying the element each time,
causing unnecessary layout recalculations.

The solution is to replace it with v-show="!menuPinned" which keeps
the element in the DOM (only toggles display), preventing extra
ResizeObserver triggers and making transitions smoother.

Change-Id: I2e544bb0451cc6a17a4bbeaf482ce678173adcd4
master
nidrissi-zouggari 1 month ago
parent c764dfca71
commit 69e43c898e

@ -80,7 +80,7 @@
/>
</q-toolbar>
<q-toolbar
v-if="menuMinimized"
v-show="!menuPinned"
inset
>
<q-item

Loading…
Cancel
Save