ui: hide the native clear button in SearchInput (#30719)
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
Check Pre-Tokenizer Hashes / pre-tokenizer-hashes (push) Has been cancelled
Python check requirements.txt / check-requirements (push) Has been cancelled
Python Type-Check / python type-check (push) Has been cancelled
Update Operations Documentation / update-ops-docs (push) Has been cancelled

SearchInput already renders its own clear button.
Hide the browser's native search cancel button to avoid showing both controls.

Fixes #28627

Signed-off-by: aiqubits <aiqubits@hotmail.com>
This commit is contained in:
aiqubits
2026-10-20 11:58:38 +08:00
committed by GitHub
parent 3bb63cbcbf
commit 1d88cb05f1
@@ -61,7 +61,9 @@
bind:ref
bind:value
{autofocus}
class="max-md:h-10 pl-9 {showClearButton ? 'pr-9' : ''} {size === 'sm' ? 'h-8' : ''}"
class="max-md:h-10 pl-9 {showClearButton ? 'pr-9' : ''} {size === 'sm'
? 'h-8'
: ''} [&::-webkit-search-cancel-button]:hidden"
{id}
oninput={handleInput}
onkeydown={onKeyDown}