add on click to button, fixes clicks

add onClick={onClick} to `<Component/>` in button component.
This commit is contained in:
Faisal Kurdi 2020-12-01 16:47:02 -08:00 committed by GitHub
parent bbcf63b892
commit 0e552cc4e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
return ( return (
<Component <Component
onClick={onClick}
aria-pressed={active} aria-pressed={active}
data-variant={variant} data-variant={variant}
ref={mergeRefs([ref, buttonRef])} ref={mergeRefs([ref, buttonRef])}