mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 19:53:49 +01:00
fix auto-save.
This commit is contained in:
parent
4ca3d03b90
commit
d52d4a0e41
@ -83,7 +83,6 @@ class Editor {
|
||||
// Is the save action enabled ... ?
|
||||
if (!capability.isHidden('save')) {
|
||||
// Register unload save ...
|
||||
|
||||
window.addEventListener('beforeunload', () => {
|
||||
this.component.save(false);
|
||||
this.component.unlockMap();
|
||||
|
@ -49,7 +49,7 @@ const TopicNote = (props: {
|
||||
margin="dense"
|
||||
value={note}
|
||||
onChange={(event) => setNote(event.target.value)}
|
||||
></Input>
|
||||
/>
|
||||
<br />
|
||||
<SaveAndDelete
|
||||
model={props.noteModel}
|
||||
|
@ -80,6 +80,7 @@ const Editor = ({
|
||||
|
||||
const mindplotRef = useCallback((component: MindplotWebComponent) => {
|
||||
const model = new Model(component);
|
||||
model.registerEvents(setCanvasUpdate, capability);
|
||||
|
||||
// Force refresh after map load ...
|
||||
model
|
||||
|
Loading…
Reference in New Issue
Block a user