浏览代码

Merge pull request #215 from avouspierre/dev+carb+note

fix #211 issue
bjornoleh 2 年之前
父节点
当前提交
42421681cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      FreeAPS/Sources/Modules/AddCarbs/View/AddCarbsRootView.swift

+ 1 - 1
FreeAPS/Sources/Modules/AddCarbs/View/AddCarbsRootView.swift

@@ -57,7 +57,7 @@ extension AddCarbs {
                     HStack {
                     HStack {
                         Text("Note").foregroundColor(.secondary)
                         Text("Note").foregroundColor(.secondary)
                         TextField("", text: $state.note).multilineTextAlignment(.trailing)
                         TextField("", text: $state.note).multilineTextAlignment(.trailing)
-                        if state.note != "", isFocused {
+                        if isFocused {
                             Button { isFocused = false } label: { Image(systemName: "keyboard.chevron.compact.down") }
                             Button { isFocused = false } label: { Image(systemName: "keyboard.chevron.compact.down") }
                                 .controlSize(.mini)
                                 .controlSize(.mini)
                         }
                         }