Skip to content
Snippets Groups Projects
Commit 997079f5 authored by chris's avatar chris
Browse files

fix fullscreen

parent ea21e670
No related branches found
No related tags found
1 merge request!597Use view context
......@@ -24,7 +24,6 @@ const DropWrapper = styled.div`
const Dropdown = props => {
const { className, disabled, dropComponent, iconName, label, title } = props;
const [isOpen, setIsOpen] = useState(false);
console.log('fkffkfk');
const { t, i18n } = useTranslation();
return (
......
......@@ -67,6 +67,14 @@ const useWaxView = props => {
'main',
);
},
blur(editorView) {
context.updateView(
{
main: editorView,
},
'main',
);
},
mousedown: editorView => {
context.updateView(
{
......
......@@ -12,10 +12,10 @@ const FullScreenButton = ({ view = {}, item }) => {
const context = useContext(WaxContext);
const { activeViewId, activeView, options } = context;
const { state } = view;
const handleMouseDown = e => {
context.updateView({}, 'main');
e.preventDefault();
Object.assign(options, { fullScreen: !options.fullScreen });
activeView.dispatch(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment