-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
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
When mask clicked (onPressMask) saves the date value #327
Comments
rdewolff
changed the title
onPressMask saves the date value
When mask clicked (onPressMask) saves the date value
Mar 19, 2019
+1 to submitting on mask press (I think that's what you mean?) My workaround for now is using the (undocumented) 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} />
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: