v2.6.3 - Framework Compatibility Fix
🐛 Bug Fixes
Improved Framework Compatibility for Data Attributes
Fixed an issue where initial-data and hotzone-data attributes were not properly responding to updates in Vue, React, Angular, and other frameworks.
Problem: When frameworks re-set the same attribute value (common in reactive/two-way binding scenarios), the Web Component would skip the update due to oldValue === newValue check.
Solution: Skip the equality check for initial-data and hotzone-data attributes, ensuring the component always responds to attribute changes from frameworks.
Affected Frameworks
- ✅ Vue 2/3 (�-bind:initial-data)
- ✅ React (initial-data={JSON.stringify(data)})
- ✅ Angular ([attr.initial-data])
- ✅ Svelte (initial-data={jsonString})
Additional Improvements
- Added support for clearing canvas when initial-data is set to empty/null values
- Better handling of reactive data binding scenarios