Skip to content

Commit c0a6b75

Browse files
committed
Merge branch 'feature/fix-empty-strings' into develop
Fix #9
2 parents 21b3838 + d45030c commit c0a6b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/TokenField/ICTokenField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
294294
let newToken = text.substring(to: index)
295295
textField.text = nil
296296

297-
if newToken != delimiter {
297+
if !newToken.isEmpty && newToken != delimiter {
298298
tokens.append(ICToken(text: newToken, normalAttributes: normalTokenAttributes, highlightedAttributes: highlightedTokenAttributes))
299299
layoutTokenTextField()
300300
delegate?.tokenField?(self, didEnterText: newToken)

0 commit comments

Comments
 (0)