Replies: 2 comments
-
Also ran into this, see #3121 (comment) wrapping it in a |
Beta Was this translation helpful? Give feedback.
0 replies
-
Even though this is old, I wanted to mention that your example works fine @gamegee, you just missed spreading props to your custom button (which contains the onClick toggle method). const MyButton = forwardRef((props, ref) => {
return (
<Button ref={ref} h="s" {...props}>
Custom MyButton with forwardRef
</Button>
);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing custom component on top of chakra-ui
Popover
But for some reason, I am not able to trigger the open event from custom
PopoverContent
component.I thought using
forwardRef
should be enough, but it is not working 🤔Here is an example,
Sandbox link
Not sure what I am doing wrong ?
Beta Was this translation helpful? Give feedback.
All reactions