Repository navigation
v1.0.11
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:
- Working version: Height was set on every
updated() call - Broken version: Height was only set when
_config changed, but _config doesn't
trigger changedProperties - 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.