From a6ddbc406868987773e3c2ea46341a600c03f221 Mon Sep 17 00:00:00 2001 From: Jeri Peier Date: Thu, 30 Nov 2023 18:17:13 +0100 Subject: [PATCH] fix: move ref to the back of declarations (#2243) With lit ssr blocks in attributes that do not generate attributes seem to cause faulty rendering. E.g. skipping attributes or assigning wrong values. --- src/components/autocomplete/autocomplete.ts | 2 +- src/components/checkbox/checkbox/checkbox.ts | 14 +++++++------- .../datepicker-toggle/datepicker-toggle.ts | 2 +- src/components/map-container/map-container.ts | 10 +++++----- src/components/menu/menu/menu.ts | 4 ++-- .../navigation-section/navigation-section.ts | 6 +++--- src/components/navigation/navigation/navigation.ts | 2 +- src/components/notification/notification.ts | 2 +- src/components/select/select.ts | 2 +- src/components/selection-panel/selection-panel.ts | 2 +- src/components/tooltip/tooltip/tooltip.ts | 2 +- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/components/autocomplete/autocomplete.ts b/src/components/autocomplete/autocomplete.ts index f5832419be..643973b8ca 100644 --- a/src/components/autocomplete/autocomplete.ts +++ b/src/components/autocomplete/autocomplete.ts @@ -533,9 +533,9 @@ export class SbbAutocomplete extends LitElement {
(this._optionContainer = containerRef as HTMLElement))} role=${!this._ariaRoleOnHost ? 'listbox' : nothing} id=${!this._ariaRoleOnHost ? this._overlayId : nothing} + ${ref((containerRef) => (this._optionContainer = containerRef as HTMLElement))} >
diff --git a/src/components/checkbox/checkbox/checkbox.ts b/src/components/checkbox/checkbox/checkbox.ts index 1ff3483325..6db87350de 100644 --- a/src/components/checkbox/checkbox/checkbox.ts +++ b/src/components/checkbox/checkbox/checkbox.ts @@ -277,13 +277,6 @@ export class SbbCheckbox extends LitElement {