Skip to content

v2.6.3 - Framework Compatibility Fix

Choose a tag to compare

@typsusan-zzz typsusan-zzz released this 16 Jan 09:19
· 4 commits to master since this release

🐛 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