Skip to content

v1.0.11

Choose a tag to compare

@mor-dar mor-dar released this 10 Aug 18:03
· 14 commits to main since this release

The problem was that I over-optimized the
updated() method. I tried to only update
the height when _config changed, but
_config is not a reactive property - it's
set via the setConfig() method, not through
property binding.

What happened:

  1. Working version: Height was set on every
    updated() call
  2. Broken version: Height was only set when
    _config changed, but _config doesn't
    trigger changedProperties
  3. Fixed version: Restored height setting
    on every update while keeping DOM caching
    optimization

The fix:

  • Restored the height setting to run on
    every updated() call
  • Kept the beneficial optimizations (DOM
    reference caching, event handler
    extraction, memory management)
  • Added fallback to query the wrapper if
    cached reference isn't available yet

The card should now work correctly both in
preview and after saving the configuration,
while still benefiting from the
performance improvements for memory
management and caching.