couds / react-bulma-components

React components for Bulma framework
MIT License
1.2k stars 129 forks source link

renderAs button props not supporting onClick prop #412

Open creativeindustriesgroup opened 1 year ago

creativeindustriesgroup commented 1 year ago

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

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