Selaa lähdekoodia

fix textfield not populating with expected values when focused

polscm32 aka Marvout 1 vuosi sitten
vanhempi
commit
e7cb26d89f
1 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  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) {
     public func updateUIView(_ textField: UITextField, context: Context) {
-        if textField.isFirstResponder {
-            return
-        }
-
         if text != 0 {
         if text != 0 {
             let newText = numberFormatter.string(for: text) ?? ""
             let newText = numberFormatter.string(for: text) ?? ""
             if textField.text != newText {
             if textField.text != newText {