Close select after an option is clicked
This commit is contained in:
parent
488c13f45a
commit
5e202a01fd
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function Select({ value, children: options, className }: Props) {
|
||||||
<li
|
<li
|
||||||
key={key}
|
key={key}
|
||||||
className={classNames({ hidden: isHidden })}
|
className={classNames({ hidden: isHidden })}
|
||||||
onClick={e => [e.stopPropagation(), setOpen(true)]}
|
onClick={e => [e.stopPropagation(), setOpen(!isOpen)]}
|
||||||
>
|
>
|
||||||
{n}
|
{n}
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue