diff --git a/MVMCoreUI/Atoms/TextFields/MFTextField.h b/MVMCoreUI/Atoms/TextFields/MFTextField.h index 62985c93..72adf682 100644 --- a/MVMCoreUI/Atoms/TextFields/MFTextField.h +++ b/MVMCoreUI/Atoms/TextFields/MFTextField.h @@ -116,6 +116,7 @@ - (void)inputFromDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate showFromDateAsDefaultInput:(BOOL)show; - (void)setDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate; - (nonnull NSDate *)dismissDatePicker; +- (void)dismissPicker; //get all enabled textfields, can be pairly used with the primary button's handleEnablingWithTextFields if you only want the enable testfield's validation to be tested + (nullable NSArray *)getEnabledTextfields:(nullable NSArray *)textFieldToDetermine; diff --git a/MVMCoreUI/Atoms/TextFields/MFTextField.m b/MVMCoreUI/Atoms/TextFields/MFTextField.m index 9afcb24a..4bdbc8d3 100644 --- a/MVMCoreUI/Atoms/TextFields/MFTextField.m +++ b/MVMCoreUI/Atoms/TextFields/MFTextField.m @@ -176,6 +176,10 @@ return pickedDate; } +- (void)dismissPicker { + [self.textField resignFirstResponder]; +} + - (void)setErrorMessage:(NSString *)errorMessage { [MVMCoreDispatchUtility performBlockOnMainThread:^{