I have Select with isClearable prop, and I have following logic - when I clear value in this select, the second Select should disable. So I set isDisabled to true in 2nd, when I clear value in 1st select.
Faced the following problem: when I focus 2nd Select, and then click on cross icon - onBlur event doesn't trigger. My select have styles depending on focused state, so without onBlur my select is always remain focused
But it doesn't reproduce with simple button - when I focus 2nd Select and then disable it with button - onBlur fires.
Hello!
I have Select with
isClearable
prop, and I have following logic - when I clear value in this select, the second Select should disable. So I setisDisabled
totrue
in 2nd, when I clear value in 1st select.Faced the following problem: when I focus 2nd Select, and then click on cross icon -
onBlur
event doesn't trigger. My select have styles depending on focused state, so withoutonBlur
my select is always remain focusedBut it doesn't reproduce with simple button - when I focus 2nd Select and then disable it with button -
onBlur
fires.I expect
onBlur
to be fired in both casesI created reproduction