Closed M0hammedImran closed 8 months ago
Thanks for reporting @M0hammedImran. While that is not fixed, you can use this workaround:
unlayer.registerCallback("selectImage", async (file) => {
const thiss = this;
return new Promise((resolve) => {
thiss.done = resolve;
});
});
Thanks for reporting @M0hammedImran. While that is not fixed, you can use this workaround:
unlayer.registerCallback("selectImage", async (file) => { const thiss = this; return new Promise((resolve) => { thiss.done = resolve; }); });
Thanks @brunolemos, this worked for me.
@M0hammedImran we have released a fix. please revert back to your original code instead of the workaround. thanks!
When I try to
registerCallback
forselectImage
I see the following error on the UI.This is the code used to
registerCallback
And when image is selected, I call
done
callbackAfter calling done things seem to work as usual.