Skip to content

QTree: restored children become hidden while their parent remains expanded #18584

Closed

Description

@GuyTager-Akamai

What happened?

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.

Reproduction URL

https://jsfiddle.net/gh/gist/library/pure/3b14bd4d83c406d3e8bef8fb8d6d0faa/

Standalone source: https://gist.github.com/GuyTager-Akamai/3b14bd4d83c406d3e8bef8fb8d6d0faa

How to reproduce?

  1. Open the reproduction. Root is expanded and Child is visible.
  2. 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.
  3. Let the normal transition complete.
  4. 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)

Versions

quasar: 2.35.2
vue: 3.5.43
Chromium: 153.0.8010.12
Firefox: 155.0
WebKit: 26.6

Relevant log output

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

  1. added a commit that references this issue on Nov 12, 2026
    b92a217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions