Fix selected option removal.
This commit is contained in:
parent
8904ed741c
commit
334a311c9e
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ export function Select<OptionKey extends keyof any, Option>(
|
||||||
<li key={String(optionKey)}>
|
<li key={String(optionKey)}>
|
||||||
<Check />
|
<Check />
|
||||||
<div className={"option"}>{(renderOption ?? defaultRenderOption)(option)}</div>
|
<div className={"option"}>{(renderOption ?? defaultRenderOption)(option)}</div>
|
||||||
<button className={"remove flat"} type={"button"} onClick={() => handleDeselectedOption(optionKey)}>
|
<button className={"remove flat"} type={"button"} onMouseDown={() => handleDeselectedOption(optionKey)}>
|
||||||
<X />
|
<X />
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue