فهرست منبع

fix textfield not populating with expected values when focused

polscm32 aka Marvout 2 سال پیش
والد
کامیت
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 {