Skip to content
New issue

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

renderAs button props not supporting onClick prop #412

Open
creativeindustriesgroup opened this issue Jan 24, 2023 · 0 comments
Open

renderAs button props not supporting onClick prop #412

creativeindustriesgroup opened this issue Jan 24, 2023 · 0 comments
Labels

Comments

@creativeindustriesgroup

Describe the bug
The following code does not trigger the function when the button is clicked.

<Dropdown.Item renderAs={Button} onClick={(e) => handleSignOutClick(e)} > Sign Out</Dropdown.Item>
function handleSignOutclick(event) {
console.log("Triggered!"); 
//...
}

Versions

  • react-bulma-components: 4.1.0
  • bulma: 0.9.4
  • react: 18.2.0
  • Browser: Safari 16.2

Additional context
Note: I have also tried using renderAs values button and Button incase either fixed it, but this did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant