Skip to content

renderAs button props not supporting onClick prop #412

Open
@creativeindustriesgroup

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions