You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
QTree: restored children become hidden while their parent remains expanded #18584
An expanded QTree node can lose its visible children after its children array is briefly emptied and restored. The parent key stays in the expanded model and its header reports aria-expanded="true", but the restored child container ends up hidden.
This reproduces with the published Quasar 2.35.2 UMD bundle and current dev (05ab1b1), using only Vue and QTree.
What did you expect to happen?
Restoring the children of an expanded node should leave them visible and selectable. Expand/collapse animations and subsequent keyboard navigation should continue to work.
Open the reproduction. Root is expanded and Child is visible.
Click Remove and restore children once. The button empties the child array for one Vue render and restores it in nextTick, keeping the root key and expanded model.
Let the normal transition complete.
Child becomes hidden even though Expanded still reads root and the Root header is expanded. The child cannot be selected.
No custom transition, application wrapper, artificial timer or source patch is needed.
Flavour
UMD
Platforms/Browsers
Chrome, Firefox, Other (Playwright WebKit on macOS)
No console errors. The expanded model remains ["root"], while the restored child container has display: none after the transition.
Additional context
The expansion watcher can run before Vue replaces the child container, and a completion callback for the previous container can still change the node's shared visibility state. The same visibility problem occurs if a collapse was already in progress when the children were replaced.
I have a focused QTree fix and regression tests in preparation. It keeps animations enabled and leaves the shared transition helper unchanged.
Activity
fix(QTree): children removed and restored on an expanded node stay vi…