question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Component: Tree] property `checkedKeys` not works if set before tree render.

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.3

Environment

Chrome 65.0.3325.181

Reproduction link

Edit on CodeSandbox

Steps to reproduce

expected: click set data button before set check info button, it works fine. unexpected: click set check info button before set databutton, it doesn’t check any node.

What is expected?

the node with key specified in checkedKeys property should be checked.

What is actually happening?

it doesn’t check any node.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
narrowizardcommented, Feb 26, 2019

now it works. 😄

0reactions
zombieJcommented, Feb 26, 2019

rc-tree@1.14.10 released

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is not tree checkboxes checked in the child component ...
Maybe you have to set the property checkedKeys and checkStrictly properly. checkedKeys : (Controlled) Specifies the keys of the checked ...
Read more >
Tree - Ant Design
The Tree component is a way of representing the hierarchical relationship between these things. You can also expand, collapse, and select a treeNode...
Read more >
Tree - Ant Design
Property Description Type Default autoExpandParent Whether to automatically expand a parent treeNode boolean true checkable Adds a Checkbox before the treeNodes boolean false checkedKeys string |...
Read more >
checkedKeys Not Refreshing TreeView in Kendo UI for Angular
Hi,. We are encountering an issue with the Kendo TreeView where it is bound to an array containing all checkedKeys.
Read more >
Tree | Element Plus
A node's data is not fetched until it is clicked, so the Tree cannot predict whether a ... avoiding the render of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found