mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
editor cancels to initial state
This commit is contained in:
parent
bed9ea6948
commit
fce88cac29
3 changed files with 50 additions and 4 deletions
|
@ -25,7 +25,7 @@ export class EditorPanel extends React.PureComponent {
|
|||
|
||||
stopEditing = () => {
|
||||
if (!this.props.changed){
|
||||
this.props.editor.stopEditing();
|
||||
this.props.editor.cancelEditing();
|
||||
} else {
|
||||
this.props.editor.changeMode(MODES.CONFIRM_CANCEL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue