Просмотр исходного кода

fix textfield not populating with expected values when focused

polscm32 aka Marvout 1 год назад
Родитель
Сommit
e7cb26d89f
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      FreeAPS/Sources/Views/DecimalTextField.swift

+ 0 - 4
FreeAPS/Sources/Views/DecimalTextField.swift

@@ -81,10 +81,6 @@ public struct TextFieldWithToolBar: UIViewRepresentable {
     }
 
     public func updateUIView(_ textField: UITextField, context: Context) {
-        if textField.isFirstResponder {
-            return
-        }
-
         if text != 0 {
             let newText = numberFormatter.string(for: text) ?? ""
             if textField.text != newText {