fix(etherpad) close menu when opening / closing document
Specially when we oopen it, mouse tracking will no longer work, so it would remain open.
This commit is contained in:
parent
4d51aedde0
commit
780019a711
|
@ -8,6 +8,7 @@ import { IconShareDoc } from '../../base/icons';
|
|||
import { connect } from '../../base/redux';
|
||||
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
||||
import { toggleDocument } from '../../etherpad/actions';
|
||||
import { setOverflowMenuVisible } from '../../toolbox/actions.web';
|
||||
|
||||
type Props = AbstractButtonProps & {
|
||||
|
||||
|
@ -67,6 +68,7 @@ class SharedDocumentButton extends AbstractButton<Props, *> {
|
|||
}));
|
||||
|
||||
dispatch(toggleDocument());
|
||||
dispatch(setOverflowMenuVisible(false));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue