fix(ToolbarToggler): restore 'force' arg in timeout logic

This commit is contained in:
paweldomas 2016-10-13 10:34:32 -05:00
parent 687b0cad8e
commit 52344ff741
1 changed files with 3 additions and 2 deletions

View File

@ -34,8 +34,9 @@ function hideToolbar(force) { // eslint-disable-line no-unused-vars
clearTimeout(toolbarTimeoutObject);
toolbarTimeoutObject = null;
if (Toolbar.isHovered()
|| SideContainerToggler.isVisible()) {
if (true !== force &&
(Toolbar.isHovered()
|| SideContainerToggler.isVisible())) {
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
} else {
Toolbar.hide();