style(webui): don't display subdued input text in search header
This commit is contained in:
parent
8fda6fba65
commit
59895342f2
2 changed files with 3 additions and 1 deletions
|
@ -89,6 +89,7 @@
|
||||||
on:input={onInput}
|
on:input={onInput}
|
||||||
bind:this={selector}
|
bind:this={selector}
|
||||||
emptyOptions={lastSearched}
|
emptyOptions={lastSearched}
|
||||||
|
selectable={false}
|
||||||
>
|
>
|
||||||
<Icon name="search" slot="prefix" />
|
<Icon name="search" slot="prefix" />
|
||||||
</Selector>
|
</Selector>
|
||||||
|
|
|
@ -108,6 +108,7 @@
|
||||||
export let placeholder = '';
|
export let placeholder = '';
|
||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
export let keepFocusOnSet = false;
|
export let keepFocusOnSet = false;
|
||||||
|
export let selectable = true;
|
||||||
export let forceShowOptions = false;
|
export let forceShowOptions = false;
|
||||||
|
|
||||||
export let initial: SelectorValue | undefined = undefined;
|
export let initial: SelectorValue | undefined = undefined;
|
||||||
|
@ -471,7 +472,7 @@
|
||||||
bind:value={inputValue}
|
bind:value={inputValue}
|
||||||
on:focusChange={(ev) => (inputFocused = ev.detail)}
|
on:focusChange={(ev) => (inputFocused = ev.detail)}
|
||||||
on:keydown={handleArrowKeys}
|
on:keydown={handleArrowKeys}
|
||||||
klass={current !== undefined ? '' : 'selector-unset'}
|
klass={current !== undefined || !selectable ? '' : 'selector-unset'}
|
||||||
{disabled}
|
{disabled}
|
||||||
{placeholder}
|
{placeholder}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue