Skip to content

v2.6.5 - Editor Change Event Fix

Choose a tag to compare

@typsusan-zzz typsusan-zzz released this 16 Jan 10:52
· 2 commits to master since this release

🐛 Bug Fixes

editor-change Event Now Triggers on All Data Changes

Previously, the editor-change event only fired when adding new objects. Now it properly triggers on:

  • Drag/Move - Moving objects on canvas
  • Resize - Changing object dimensions
  • Rotate - Rotating objects
  • Skew - Skewing/shearing objects
  • Multi-select operations - Dragging/rotating multiple objects
  • Add new objects - (already working)

Usage

javascript editor.addEventListener('editor-change', (e) => { console.log('Canvas data changed:', e.detail.objects); // Now fires on ANY data change, not just new objects });

This fix ensures proper data synchronization with Vue/React/Angular state management.