fix code style problem

This commit is contained in:
myl7
2021-11-27 16:31:02 +08:00
parent d7dd74772e
commit 6c63aa90be
+3 -1
View File
@@ -111,7 +111,9 @@ const Checkbox: FunctionComponent<{
}
}
}, [ref, checked, indeterminate])
const handleClick = () => { ref.current ? ref.current.click() : null }
const handleClick = () => {
if (ref.current) ref.current.click()
}
return (
<span