Open shir opened 7 years ago
@shir thanks for informing that, I have removed multiple unnecessary checks, altho I agree blank value can be valid at some points, see what @dima-bu has to say about this.
I'm facing this problem as well, and the worst thing is that when the component updates the previous value is set back.
Looks like if value is empty it's not valid and when value is not valid it's not propagated to
onTimeChange
. I think it's not correct. There many cases when value may be empty (in my case too).BTW, there is a lot of checks in
isValid
function, but in most cases first check will get youfalse
and there is no reasons to continue checking.