Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

fix(tree): Unexpected collapse after hoisting a note #2293

Merged
merged 2 commits into from
Jun 12, 2025
Merged

Conversation

SiriusXT
Copy link
Member

Sometimes, after opening settings and hoisting a note, clicking a node causes the tree to suddenly collapse.

The issue can be easily reproduced by changing 600 * 1000 to 3 * 1000 in apps\client\src\widgets\note_tree.ts.

After hoisting a note, branch.isExpanded should be set to true to prevent updateNode from mistakenly treating the node as unexpanded and collapsing it.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 12, 2025
@eliandoran eliandoran merged commit c34c0c4 into develop Jun 12, 2025
10 checks passed
@eliandoran eliandoran deleted the tree branch June 12, 2025 15:34
@eliandoran eliandoran added this to the v0.95.0 milestone Jun 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants