nhn / toast-ui.vue-image-editor

Toast UI Image Editor for Vue
MIT License
186 stars 41 forks source link

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

Open zxh2013 opened 5 years ago

zxh2013 commented 5 years ago

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

kashyappiyush1998 commented 4 years ago

Did you solve this?

bapisth commented 4 years ago

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