react-bulma-components icon indicating copy to clipboard operation
react-bulma-components copied to clipboard

renderAs button props not supporting onClick prop

Open creativeindustriesgroup opened this issue 2 years ago • 0 comments

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.

creativeindustriesgroup avatar Jan 24 '23 19:01 creativeindustriesgroup