Merge branch 'feature/calling_validator' into 'develop'
validator check See merge request BPHV_MIPS/mvm_core_ui!679
This commit is contained in:
commit
8c63660a46
@ -319,12 +319,14 @@ import UIKit
|
||||
model.updateUIDynamicError = { [weak self] in
|
||||
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
||||
guard let self = self else { return }
|
||||
|
||||
let validState = model.isValid ?? false
|
||||
self.updateValidation(validState)
|
||||
if !validState && model.shouldClearText {
|
||||
self.text = ""
|
||||
model.shouldClearText = false
|
||||
}
|
||||
_ = FormValidator.validate(delegate: self.delegateObject?.formHolderDelegate)
|
||||
self.updateValidation(validState)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user