Open mitch-shiver opened 3 years ago
Thanks for identifying this issue. Unfortunately I can not fix it in dash-useful-components because it is just a Dash wrapper around the underlying react checkbox component. We have thus to wait for a fix of jakezatecky/react-checkbox-tree#189.
Hi, this is a great package for Dash usage and I plan to use it no matter what. However there is an irritating bug that makes its use a bit tricky. I am using this package to display on a web app UI the folder structure and file contents of that structure. When a folder is empty (the parent node has no leaf nodes) the folder is treated as file in display (it is treated as a leaf node, and displayed as such). As a result I only have two options: disable the visualization of the folder/file icons (which makes this not near as useful) or create a temp file in empty folders so the user does not get confused about what the folder actually is due to the incorrect icon. This seems like it may be related a issue I see with the underlying React checkbox tree component (https://github.com/jakezatecky/react-checkbox-tree/issues/189) but I am wondering if there is a way to address this in this component (similar to how one of the posters for that issue recommended)?