unlayer / react-email-editor

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

"design:updated" event is not triggered when consecutive changes are made to the currently focused element #396

Open arun-targetbay opened 4 months ago

arun-targetbay commented 4 months ago

unlayer.addEventListener('design:updated', (design: any) => { this.autoSave(design); console.log('design:updated', design); });

The "design:updated" event is successfully triggering and logging on the first update of the element. However, for consecutive updates on the same element, the callback associated with the "design:updated" event is not being fired. This issue prevents us from capturing and handling consecutive updates effectively. We need to investigate and resolve this behavior to ensure that the "design:updated" event functions as expected for all updates on the element.

davidallen-petdesk commented 2 months ago

For reference, bug report with Unlayer: https://unlayer.canny.io/bug-reports-2024/p/design-updated-event-is-not-triggered-consecutively-on-every-change