validator check
This commit is contained in:
parent
c9417a0f13
commit
fae969fd1f
@ -319,12 +319,14 @@ import UIKit
|
|||||||
model.updateUIDynamicError = { [weak self] in
|
model.updateUIDynamicError = { [weak self] in
|
||||||
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
|
|
||||||
let validState = model.isValid ?? false
|
let validState = model.isValid ?? false
|
||||||
self.updateValidation(validState)
|
|
||||||
if !validState && model.shouldClearText {
|
if !validState && model.shouldClearText {
|
||||||
self.text = ""
|
self.text = ""
|
||||||
model.shouldClearText = false
|
model.shouldClearText = false
|
||||||
}
|
}
|
||||||
|
_ = FormValidator.validate(delegate: self.delegateObject?.formHolderDelegate)
|
||||||
|
self.updateValidation(validState)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user