fix:fix multi-select tag not changing with size (#1886)

Co-authored-by: xiongwei <xiongwei@sobey.com>
pull/1889/head
RoyDust 2024-02-24 00:42:49 +08:00 zatwierdzone przez GitHub
rodzic 033fec9471
commit 1a2969a74b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -617,7 +617,7 @@ export default class SlSelect extends ShoelaceElement implements ShoelaceFormCon
</div>`;
} else if (index === this.maxOptionsVisible) {
// Hit tag limit
return html`<sl-tag>+${this.selectedOptions.length - index}</sl-tag>`;
return html`<sl-tag size=${this.size}>+${this.selectedOptions.length - index}</sl-tag>`;
}
return html``;
});