streamlit_tree_select icon indicating copy to clipboard operation
streamlit_tree_select copied to clipboard

tree_select checked property doesn't select the listed nodes

Open asehmi opened this issue 2 years ago • 2 comments

Hi,

The tree_select checked property doesn't cause the listed nodes to be visibly selected in the tree, nor expand the branches they are in (depending on the expand_on_click setting).

Would it be possible to provide the checked nodes list in the form they would have been defined, i.e. as dict objects? It seems they need to be converted to strings, so I need to do something like checked=[json.dumps(node1), json.dumps(node2), ...] instead of simply checked=[node1, node2]. I get the pre-checked nodes back as values but as stated above the tree nodes don't visibly show as checked.

Thanks, Arvindra

asehmi avatar Sep 20 '22 14:09 asehmi