Skip to content

Event number validation fails for zero which is inconistent with props #12523

Discussion options

You must be logged in to vote

Your use case is half correct. When passing in a validate function (zeroEvent: Number), its return value will be used as the validation condition, and any falsy value will be considered as validation failure. You happened to pass in 0.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lukedrive
Comment options

@KazariEX
Comment options

Answer selected by lukedrive
@lukedrive
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants