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
|
||||
key={key}
|
||||
className={classNames({ hidden: isHidden })}
|
||||
onClick={e => [e.stopPropagation(), setOpen(true)]}
|
||||
onClick={e => [e.stopPropagation(), setOpen(!isOpen)]}
|
||||
>
|
||||
{n}
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue