commit 585110ee37ac883cd4dfb985ee2c2dfea4bf6be5
parent 17df2c8881d654512cbe8ea6d13ad59af202906a
Author: Michael Camilleri <[email protected]>
Date: Sat, 7 Feb 2026 15:42:31 +0900
Fix clicking in empty space
Co-Authored-By: Claude 4.5 Sonnet <[email protected]>
Diffstat
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/Listless/Views/TaskListView.swift b/Listless/Views/TaskListView.swift
@@ -225,6 +225,9 @@ struct TaskListView: View {
// Focus repair will set to .scrollView if needed
} else {
createTaskAndFocus()
+ // Trigger focus resolution by setting to nil
+ // onChange(of: focusedField) will then resolve pendingFocus
+ focusedField = nil
}
}