We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18a289 commit 87a7f2fCopy full SHA for 87a7f2f
WooCommerce/Classes/ViewRelated/ReusableViews/TextFieldTableViewCell.swift
@@ -48,7 +48,10 @@ private extension TextFieldTableViewCell {
48
49
private extension TextFieldTableViewCell {
50
@objc func textFieldDidChange(textField: UITextField) {
51
- let formattedText = viewModel?.inputFormatter?.format(input: textField.text) ?? textField.text
+ guard let formattedText = viewModel?.inputFormatter?.format(input: textField.text) else {
52
+ onTextChange?(textField.text)
53
+ return
54
+ }
55
textField.text = formattedText
56
onTextChange?(formattedText)
57
}
0 commit comments