We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a9bf0e commit 7866419Copy full SHA for 7866419
src/Selector/Input.tsx
@@ -21,7 +21,7 @@ interface InputProps {
21
function fillRef(node: InputRef, ref: React.LegacyRef<InputRef> | React.Ref<InputRef>) {
22
if (typeof ref === 'function') {
23
ref(node);
24
- } else if (typeof ref === 'object') {
+ } else if (ref && typeof ref === 'object') {
25
(ref as any).current = node;
26
}
27
0 commit comments