unlayer / react-email-editor

Drag-n-Drop Email Editor Component for React.js
https://unlayer.com/embed
MIT License
4.53k stars 730 forks source link

onReady | call outside from editor component #335

Closed MwSpaceLLC closed 1 year ago

MwSpaceLLC commented 1 year ago

Hi there

Today i want share with u little bug (tink)

If we use in same page input or another dom changes, the onReady function by editor, will be re-call.

Ex, in below, if u load dom, u can see 1 log, but if u type in input, u can see another log, same called from onReady..

image

Why? U can test input onChange: https://codesandbox.io/s/blue-dust-3kzxtg?file=/src/App.js

xinghengwang commented 1 year ago

have same issue. onReady suppose to be their hook for us to initiate the editor. it is triggered when anything else on the page is shown and unshown, and thus resets everything. So frastrating with their support, it is like talking in circles. and I am paying customer.

Arsenalist commented 1 year ago

I'm having this issue as well. onReady is called when I make an HTTP call inside onReady. This makes no sense.