react-bulma-components
react-bulma-components copied to clipboard
renderAs button props not supporting onClick prop
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.