bokuweb/re-bulma

add a prop for callbacks on DOM event

Opened this issue · 1 comments

For example on the Checkbox element.

I want to do the following :

import { Checkbox } from 're-bulma'

const CustomComponent = ({ option, onToggle }) => (
  <Checkbox
    key={ option.name }
    onCheck={ () => onToggle()}
  >{option.name}</Checkbox>
)

and have my callback be fired everytime I check or uncheck this checkbox.

but at the moment . . . nothing is happening, and I'm too lazy to implement this myself :)

@Thebigbignooby Thanks for your report. I'll need to add callback props.
But, does react support the onCheck callback? Is it onClick?