fix: sidebar search input auto fill value when first loading
This commit is contained in:
parent
ef6ae81c8c
commit
45c5e39661
1 changed files with 7 additions and 0 deletions
|
|
@ -260,6 +260,13 @@ export default function ExtraSidebar(): JSX.Element {
|
|||
// Set search input state
|
||||
setSearch(event.target.value);
|
||||
}}
|
||||
autocomplete="off"
|
||||
readonly="readonly"
|
||||
onClick={()=>
|
||||
document
|
||||
.getElementById('search')
|
||||
.removeAttribute("readonly")
|
||||
}
|
||||
/>
|
||||
<div
|
||||
className="search-icon"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue