瀏覽代碼

fixes bug which prevented to enter decimal numbers

polscm32 aka Marvout 2 年之前
父節點
當前提交
136343a09c
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      FreeAPS/Sources/Views/DecimalTextField.swift

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

@@ -77,8 +77,6 @@ public struct TextFieldWithToolBar: UIViewRepresentable {
     public func updateUIView(_ textField: UITextField, context: Context) {
         if text != 0 {
             textField.text = numberFormatter.string(from: text as NSNumber)
-        } else {
-            textField.text = ""
         }
         textField.placeholder = placeholder
         textField.textColor = textColor