Skip to content
This repository has been archived by the owner on Nov 18, 2018. It is now read-only.

add a prop for callbacks on DOM event #55

Open
Thebigbignooby opened this issue Jan 8, 2017 · 1 comment
Open

add a prop for callbacks on DOM event #55

Thebigbignooby opened this issue Jan 8, 2017 · 1 comment

Comments

@Thebigbignooby
Copy link

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
Copy link
Owner

bokuweb commented Jan 9, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants