From 325eaeb225fb2dc7f5487e8a529b334553b38e1d Mon Sep 17 00:00:00 2001 From: Lea Verou Date: Sat, 14 Dec 2024 19:10:30 -0500 Subject: [PATCH] [select] Mark `getTag` as `attribute: false` --- src/components/select/select.ts | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/components/select/select.ts b/src/components/select/select.ts index acb7424f5..c91e151cf 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -240,25 +240,26 @@ export default class WaSelect extends WebAwesomeFormAssociatedElement { * is the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted * HTML of the symbol to render at the specified value. */ - @property() getTag: (option: WaOption, index: number) => TemplateResult | string | HTMLElement = option => { - return html` - this.handleTagRemove(event, option)} - > - ${option.getTextLabel()} - - `; - }; + ?pill=${this.pill} + size=${this.size} + removable + @wa-remove=${(event: WaRemoveEvent) => this.handleTagRemove(event, option)} + > + ${option.getTextLabel()} + + `; + }; connectedCallback() { super.connectedCallback();