Parcourir la source

fix textfield not populating with expected values when focused

polscm32 aka Marvout il y a 1 an
Parent
commit
e7cb26d89f
1 fichiers modifiés avec 0 ajouts et 4 suppressions
  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 {