further changes to orbservation

This commit is contained in:
Kevin G Christiano 2020-05-15 12:20:39 -04:00
parent fb7760a329
commit ad4dfcf748
3 changed files with 12 additions and 6 deletions

View File

@ -250,12 +250,6 @@ import UIKit
@objc func endInputing() {
isSelected = false
resignFirstResponder()
// Don't show error till user starts typing.
guard text?.count ?? 0 != 0 else {
showError = false
return
}
}
//--------------------------------------------------

View File

@ -272,6 +272,12 @@ import UIKit
/// Executes on UITextField.textDidEndEditingNotification
@objc override func endInputing() {
super.endInputing()
// Don't show error till user starts typing.
guard text?.count ?? 0 != 0 else {
showError = false
return
}
if let isValid = textEntryFieldModel?.isValid {
self.isValid = isValid

View File

@ -206,6 +206,12 @@ class TextViewEntryField: EntryField, UITextViewDelegate, ObservingTextFieldDele
@objc override func endInputing() {
super.endInputing()
// Don't show error till user starts typing.
guard text?.count ?? 0 != 0 else {
showError = false
return
}
if let isValid = textViewEntryFieldModel?.isValid {
self.isValid = isValid
}