icecoder / ICEcoder

Browser code editor awesomeness
http://icecoder.net
Other
1.41k stars 348 forks source link

You can only deselect the root dir on load after hovering over a dir/file #992

Closed mattpass closed 3 years ago

mattpass commented 3 years ago

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:

  1. Click anywhere but on a dir/fie in file manager
  2. /ROOT doesn't deselect

Expected behavior It should deselect and not require a mouse out action.

mattpass commented 3 years ago

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.