add a prop for callbacks on DOM event
Opened this issue · 1 comments
Thebigbignooby commented
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 :)
bokuweb commented
@Thebigbignooby Thanks for your report. I'll need to add callback
props.
But, does react support the onCheck
callback? Is it onClick?