editor: put back fragment on cancel

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-24 11:43:30 -07:00
parent fc53e020cf
commit 6f6eb1c3ae
1 changed files with 3 additions and 0 deletions

View File

@ -325,6 +325,9 @@ export default defineComponent({
})
) {
this.onClose('warning-ignored', false);
} else {
// User cancelled, put the fragment back
utils.fragment.push(utils.fragment.types.editor);
}
},