We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using custom components such as <FancyButton /> as trigger does not work
<FancyButton />
trigger
function CustomButton () { return <button>Custom</button>; } <Popup trigger={<CustomButton />}> <div>Not Work</div> </Popup>
1.3.2
https://codesandbox.io/s/9jx6mx22w
Popup will show but it doesn't
The text was updated successfully, but these errors were encountered:
Hi @kevinlaw91 You just need to pass missed props to your trigger like the following :
function CustomButton (props) { return <button {...props}>Custom</button>; } <Popup trigger={(props) => <CustomButton {...props} />}> <div>Not Work</div> </Popup>
https://codesandbox.io/s/2lv3wo9ly
Sorry, something went wrong.
No branches or pull requests
Using custom components such as
<FancyButton />
astrigger
does not workVersion
1.3.2
Test Case
https://codesandbox.io/s/9jx6mx22w
Expected Behavior
Popup will show but it doesn't
The text was updated successfully, but these errors were encountered: