ONVIK-14895

This commit is contained in:
Suresh, Kamlesh 2019-04-16 15:33:34 -04:00
parent 67ac36383b
commit 76506a51b5

View File

@ -561,7 +561,7 @@
- (void)setWithJSON:(NSDictionary *)json delegate:(nullable id<UITextFieldDelegate, MFTextFieldDelegate>)delegate additionalData:(NSDictionary *)additionalData {
[FormValidator setupValidationWithMolecule:self delegate:(id<FormValidationProtocol>)delegate];
FormValidator *formValidator = [FormValidator getFormValidatorForDelegate:(id<FormValidationProtocol>)delegate];
[self setWithMap:json bothDelegates:formValidator];
[self setWithMap:json bothDelegates: formValidator ?: delegate ];
}
#pragma mark - FormValidationProtocol