Fixed Crash on securetext in TextEntryField
This commit is contained in:
parent
f18d29c12e
commit
3dabba57df
@ -249,6 +249,10 @@ import UIKit
|
||||
//--------------------------------------------------
|
||||
// MARK: - Methods
|
||||
//--------------------------------------------------
|
||||
public override func showErrorView(_ show: Bool) {
|
||||
//do nothing since you should show the error view
|
||||
//within a digitEntryField
|
||||
}
|
||||
|
||||
@objc public func setAsSecureTextEntry(_ secureEntry: Bool) {
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ import UIKit
|
||||
textField.accessibilityValue = nil
|
||||
}
|
||||
|
||||
if textField.isSecureTextEntry {
|
||||
if !textField.isSecureTextEntry {
|
||||
showErrorView(error)
|
||||
}
|
||||
|
||||
@ -294,8 +294,7 @@ import UIKit
|
||||
resignFirstResponder()
|
||||
}
|
||||
|
||||
private func showErrorView(_ show: Bool) {
|
||||
|
||||
open func showErrorView(_ show: Bool) {
|
||||
if show {
|
||||
entryFieldContainer.addSubview(errorImage)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user