We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we validate the input when the mask is clicked?
I noticed many user wanting to validate the input by simply clicking on the mask and not on the OK button.
What do you think? How can we achieve that?
The text was updated successfully, but these errors were encountered:
+1 to submitting on mask press (I think that's what you mean?)
My workaround for now is using the (undocumented) onPressConfirm:
onPressConfirm
class MyDatePicker { _onPress() { const {onPressMask} = this.props; this._datePickerRef.onPressConfirm(); if (onPressMask) { onPressMask(); } } _onDatePickerRef(ref) { this._datePickerRef = ref; } render() { <DatePicker {...this.props} ref={this._onDatePickerRef} onPress={this._onPress} /> } }
Sorry, something went wrong.
@izhan @rdewolff - this PR adds support for exactly this! #363
No branches or pull requests
How can we validate the input when the mask is clicked?
I noticed many user wanting to validate the input by simply clicking on the mask and not on the OK button.
What do you think? How can we achieve that?
The text was updated successfully, but these errors were encountered: