OSC / cloudcmd

Cloud Commander orthodox web file manager with console and editor.
cloudcmd.io
0 stars 0 forks source link

fixes AweSim-OSC/osc-fileexplorer/issues/59 deselection bug where file deselection is delayed #13

Closed brianmcmichael closed 8 years ago

brianmcmichael commented 8 years ago

Fixes https://github.com/AweSim-OSC/osc-fileexplorer/issues/59

The app is appropriately removing the .selected-file class on deselect, but the .current-file class tag remains on the element until something else is clicked.

.current-file and .selected-file share the same css properties, so it appears to stay selected.

I've added a check after the toggle to remove .current-file if the file is no longer selected.