style(webui): don't display subdued input text in search header

This commit is contained in:
Tomáš Mládek 2024-07-14 11:08:36 +02:00
parent 8fda6fba65
commit 59895342f2
2 changed files with 3 additions and 1 deletions

View file

@ -89,6 +89,7 @@
on:input={onInput}
bind:this={selector}
emptyOptions={lastSearched}
selectable={false}
>
<Icon name="search" slot="prefix" />
</Selector>

View file

@ -108,6 +108,7 @@
export let placeholder = '';
export let disabled = false;
export let keepFocusOnSet = false;
export let selectable = true;
export let forceShowOptions = false;
export let initial: SelectorValue | undefined = undefined;
@ -471,7 +472,7 @@
bind:value={inputValue}
on:focusChange={(ev) => (inputFocused = ev.detail)}
on:keydown={handleArrowKeys}
klass={current !== undefined ? '' : 'selector-unset'}
klass={current !== undefined || !selectable ? '' : 'selector-unset'}
{disabled}
{placeholder}
>