Open eomttt opened 2 years ago
I think loadImageFromURL
call and after addText
call this error fired
@eomttt Thank you for the information. Can you tell me how to reproduce it in detail?
Hmm
const imageEditor = new ImageEditor({})
without loadImage
params in includeUI
imageEditor.loadImageFromURL(image url)
imageEditor.addText('test')
i got error
i think, in ui.js
-> initCanvas
method not call activeMenuEvent
method when loadImageInfo.path
has not
so when i call addText()
and changeMenu
called but in _changeMenu
has this logic
this[this.submenu].changeStartMode();
but activeMenuEvent
not called because loadImageInfo.path
is null
so this[this.submenu]
is undefined
so fire error
@eomttt I succeeded in reproducing it. Thank you for the information. Do you want to post a PR to fix the bug?
Summary I got error when i call
addText
method but first timeScreenshots error
Version Write the version of the imageEditor you are currently using.
Additional context Add any other context about the problem here.