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.
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.