Skip to content

Commit 0b2aa06

Browse files
committed
fixed limited length textfields issue
1 parent ce83f9e commit 0b2aa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOSFormUtils/TextInput.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extension TextInput: UITextFieldDelegate {
104104
}
105105

106106
public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
107-
if let _ = limit {
107+
if let _ = limit, "" != string {
108108
return textField.text!.characters.count < limit
109109
}
110110

0 commit comments

Comments
 (0)