fix(toolbox): Fix toolbox not auto-hiding. (#9002)
This commit is contained in:
parent
b1833fddad
commit
cbeb7b86cc
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue