1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-07-08 15:03:58 +01:00
Files
frontend/test
Ryan Mounce 0c25f061ef Fix date range picker presets rendering blank when translations load late (#53040)
The preset ranges in ha-date-range-picker were computed once in
connectedCallback(). If the component connected before the translation
chunk containing the range labels had loaded, localize() returned an
empty string for every key, collapsing all presets into a single
empty-keyed entry — the preset list rendered blank and never recovered.

Compute _ranges in willUpdate() instead, recomputing whenever _i18n,
_hassConfig, or extendedPresets changes. This also fixes the presets
not updating when the locale or timezone changes while the page is open.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 13:14:05 +00:00
..
2026-07-07 16:10:04 +03:00
2024-11-26 14:49:13 +01:00
2026-07-07 16:10:04 +03:00