Skip to content

Commit

Permalink
Fix Chinese input issue (#2150)
Browse files Browse the repository at this point in the history
do nothing if the text field has markedTextRange

Co-authored-by: Mathias Claassen <mathias@xmartlabs.com>
  • Loading branch information
azone and mats-claassen authored Apr 12, 2021
1 parent 53a7f12 commit 9ba5cb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Rows/Common/FieldRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ open class _FieldCell<T> : Cell<T>, UITextFieldDelegate, TextFieldCell where T:
}

@objc open func textFieldDidChange(_ textField: UITextField) {

guard textField.markedTextRange == nil else { return }

guard let textValue = textField.text else {
row.value = nil
Expand Down

0 comments on commit 9ba5cb5

Please sign in to comment.