refactored updating of rules
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
f95317eb24
commit
95f4ad06a1
@ -356,6 +356,7 @@ open class EntryFieldBase: Control, Changeable, FormFieldInternalValidatable {
|
|||||||
/// Updates the UI
|
/// Updates the UI
|
||||||
open override func updateView() {
|
open override func updateView() {
|
||||||
super.updateView()
|
super.updateView()
|
||||||
|
updateRules()
|
||||||
updateContainerView()
|
updateContainerView()
|
||||||
updateContainerWidth()
|
updateContainerWidth()
|
||||||
updateTitleLabel()
|
updateTitleLabel()
|
||||||
@ -418,7 +419,6 @@ open class EntryFieldBase: Control, Changeable, FormFieldInternalValidatable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open func validate(){
|
open func validate(){
|
||||||
updateRules()
|
|
||||||
validator = FormFieldValidator<EntryFieldBase>(field: self, rules: rules)
|
validator = FormFieldValidator<EntryFieldBase>(field: self, rules: rules)
|
||||||
validator?.validate()
|
validator?.validate()
|
||||||
setNeedsUpdate()
|
setNeedsUpdate()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user