Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QTree expandAll duplicating expanded nodes #15764

Closed
Seamus-Ohhhh opened this issue Apr 27, 2023 · 1 comment
Closed

QTree expandAll duplicating expanded nodes #15764

Seamus-Ohhhh opened this issue Apr 27, 2023 · 1 comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@Seamus-Ohhhh
Copy link

What happened?

QTree expandAll method duplicating expanded nodes in expanded array.

issue seems to be in the expandAll function. the const expanded is being set to the current expanded array with each expandable node being added to the array.

currently have to run collapseAll before expandAll to clear out the expanded array

What did you expect to happen?

nodes to be referenced once in the expanded array

Reproduction URL

https://codepen.io/seamus-ohhhh/pen/Rwegaqg?editors=1010

How to reproduce?

  1. go to link
  2. note current length of expanded nodes and list displayed (should show length 2, with 2 nodes shown)
  3. click 'EXPAND ALL' button
  4. note new length of expanded nodes (should show length 5, with 5 nodes shown - 2 duplicates)
  5. repeat step 3 with each click of 'EXPAND ALL' all expandable nodes are appended to array

Flavour

UMD

Areas

Components (quasar)

Platforms/Browsers

Firefox, Chrome, Safari, Microsoft Edge, iOS, Android, Electron, Other

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@rstoenescu
Copy link
Member

Fix will be available in Quasar v2.11.11 and v1.22.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants