You can only deselect the root dir on load after hovering over a dir/file
mattpass opened this issue · 1 comments
mattpass commented
Describe the bug
On page load, the /ROOT
is selected, and you can't deselect it until you hover mouse over any dir/file and out again, then click.
Should be able to click straight away to deselect. Is stuck.
To Reproduce
Steps to reproduce the behavior:
- Click anywhere but on a dir/fie in file manager
/ROOT
doesn't deselect
Expected behavior
It should deselect and not require a mouse out action.
mattpass commented
On init we were stating we're over the root dir, and actioning an initial selection to select it, but didn't then state we're not over it any more.
Have added this extra line which then allows for a deselection to happen by user thereafter.