diff --git a/MVMCoreUI/Atoms/TextFields/MFTextField.h b/MVMCoreUI/Atoms/TextFields/MFTextField.h index 27dd8414..63694bfb 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 55d6f8e6..26934699 100644 --- a/MVMCoreUI/Atoms/TextFields/MFTextField.m +++ b/MVMCoreUI/Atoms/TextFields/MFTextField.m @@ -181,6 +181,10 @@ return pickedDate; } +- (void)dismissPicker { + [self.textField resignFirstResponder]; +} + - (void)setErrorMessage:(NSString *)errorMessage { [MVMCoreDispatchUtility performBlockOnMainThread:^{