N
N
Ninja Mate2016-02-25 17:09:00
JavaScript
Ninja Mate, 2016-02-25 17:09:00

Is it possible to hang an event on onSelect for a checkbox?

<Input type="checkbox" 
        onSelect={ ()=> this.setState({ eng_oneoff_eldwelc: 1 })} 
readOnly />

Why does the event on onSelect not work, but everything works on onChange?
The task is to hang several events that occur on a click on the checkbox, and are canceled when removed. How can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Antropov, 2016-02-25
@victorzadorozhnyy

There is no such event here and does not work. And you can manage the state through the click handler https://facebook.github.io/jest/docs/tutorial-reac...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question