fix(toolbox): Fix toolbox not auto-hiding. (#9002)

This commit is contained in:
Horatiu Muresan 2021-04-14 20:30:19 +03:00 committed by GitHub
parent b1833fddad
commit cbeb7b86cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ import {
setFullScreen,
setOverflowMenuVisible,
setToolbarHovered,
setToolboxVisible
showToolbox
} from '../../actions';
import { getToolbarAdditionalButtons, isToolboxVisible } from '../../functions';
import DownloadButton from '../DownloadButton';
@ -675,7 +675,7 @@ class Toolbox extends Component<Props> {
*/
_onTabIn() {
if (!this.props._visible) {
this.props.dispatch(setToolboxVisible(true));
this.props.dispatch(showToolbox());
}
}