fixed issue with error focused
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
3c508aff0e
commit
afea918aa4
@ -153,8 +153,9 @@ open class InputField: EntryFieldBase {
|
||||
var state = super.state
|
||||
if showSuccess {
|
||||
state.insert(.success)
|
||||
|
||||
} else if textField.isFirstResponder {
|
||||
}
|
||||
|
||||
if textField.isFirstResponder {
|
||||
state.insert(.focused)
|
||||
}
|
||||
|
||||
@ -207,6 +208,7 @@ open class InputField: EntryFieldBase {
|
||||
successLabel.textColorConfiguration = primaryColorConfiguration.eraseToAnyColorable()
|
||||
|
||||
backgroundColorConfiguration.setSurfaceColors(VDSColor.feedbackSuccessBackgroundOnlight, VDSColor.feedbackSuccessBackgroundOndark, forState: .success)
|
||||
|
||||
borderColorConfiguration.setSurfaceColors(VDSColor.feedbackSuccessOnlight, VDSColor.feedbackSuccessOndark, forState: .success)
|
||||
|
||||
}
|
||||
@ -332,6 +334,7 @@ open class InputField: EntryFieldBase {
|
||||
extension InputField: UITextFieldDelegate {
|
||||
public func textFieldDidBeginEditing(_ textField: UITextField) {
|
||||
fieldType.handler().textFieldDidBeginEditing(self, textField: textField)
|
||||
setNeedsUpdate()
|
||||
}
|
||||
|
||||
public func textFieldDidEndEditing(_ textField: UITextField) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user