Fix active sub-menus which didn't disappear when hover changes

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Merge pull request #2557 from mkoistinen/toolbar-js-fix

Fix active sub-menus which didn't disappear when hover changes