nhn / toast-ui.vue-image-editor

Toast UI Image Editor for Vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught (in promise) The executing command state is locked.

zxh2013 opened this issue · comments

this.$refs.tuiImageEditor.invoke('loadImageFromURL', 'hn0fqc.jpg', 'My sample image');
error:
Uncaught (in promise) The executing command state is locked.

Version

Development Environment

Current Behavior

// Write example code

Expected Behavior

Did you solve this?

@kashyappiyush1998 I solved the issue by using setTimeOut().
setTimeout(() => { editorInstance.loadImageFromFile(imgFile, 'annotatedFile').then(() => {}); }, 100);