further changes to orbservation
This commit is contained in:
parent
fb7760a329
commit
ad4dfcf748
@ -250,12 +250,6 @@ import UIKit
|
|||||||
@objc func endInputing() {
|
@objc func endInputing() {
|
||||||
isSelected = false
|
isSelected = false
|
||||||
resignFirstResponder()
|
resignFirstResponder()
|
||||||
|
|
||||||
// Don't show error till user starts typing.
|
|
||||||
guard text?.count ?? 0 != 0 else {
|
|
||||||
showError = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -272,6 +272,12 @@ import UIKit
|
|||||||
/// Executes on UITextField.textDidEndEditingNotification
|
/// Executes on UITextField.textDidEndEditingNotification
|
||||||
@objc override func endInputing() {
|
@objc override func endInputing() {
|
||||||
super.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 {
|
if let isValid = textEntryFieldModel?.isValid {
|
||||||
self.isValid = isValid
|
self.isValid = isValid
|
||||||
|
|||||||
@ -206,6 +206,12 @@ class TextViewEntryField: EntryField, UITextViewDelegate, ObservingTextFieldDele
|
|||||||
@objc override func endInputing() {
|
@objc override func endInputing() {
|
||||||
super.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 {
|
if let isValid = textViewEntryFieldModel?.isValid {
|
||||||
self.isValid = isValid
|
self.isValid = isValid
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user