From 02abf08be507b8a621b0e6ac39e8c53954b5301b Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 19 Dec 2024 13:14:23 -0700 Subject: [PATCH] Et2Search / SearchMixin: Hide clear button when dropdown is visible --- api/js/etemplate/Et2Select/SearchMixin.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index cd438c63e6..57cd0da8f2 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -145,13 +145,19 @@ export const Et2WithSearchMixin = dedupeMixin( width: 100%; } - :host([search]) sl-select[open]::part(display-input), :host([allowfreeentries]) sl-select[open]::part(display-input) { - display: none; - } + :host([search]), :host([allowfreeentries]) { + sl-select[open]::part(display-input) { + display: none; + } - :host([search]) sl-select[open]::part(expand-icon) { - display: none; - } + sl-select[open]::part(clear-button) { + display: none; + } + + sl-select[open]::part(expand-icon) { + display: none; + } + } sl-select[open][multiple]::part(tags) { flex-basis: 100%;