+
+
+ {
+ e.stopPropagation();
+ }}
+ @keyup=${(e: KeyboardEvent) => {
+ e.stopPropagation();
+ if (e.key === "Escape") {
+ this.dropdownIsOpen = false;
+ this.input?.focus();
+ }
+ }}
+ @sl-select=${this.onSelect}
+ >
+ ${this.tagOptions
+ .slice(0, 3)
+ .map(
+ (tag) => html`
+ ${tag}
+ `
+ )}
+ ${this.tagOptions.length ? html`` : ""}
+
+
+ ${msg(str`Add “${this.inputValue.toLocaleLowerCase()}”`)}
+
+
+
+