'ref' might be undefined
This commit is contained in:
parent
ebd4bb36ca
commit
36a472a506
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function Select({ value, children: options, className }: Props) {
|
|||
e.stopPropagation();
|
||||
const { ref } = n.props;
|
||||
setOpen(!isOpen);
|
||||
ref.current?.click();
|
||||
ref?.current?.click();
|
||||
}}
|
||||
>
|
||||
{n}
|
||||
|
|
Loading…
Reference in a new issue