Skip to content

Commit 47bc798

Browse files
committed
Исправление
Поправил AttributeGraph: cycle detected through attribute, возникает при активации .disabled при наличии активного firstResponder-текстового поля
1 parent 2595cc3 commit 47bc798

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SwiftUI-WorkoutApp/Screens/Components/SendMessageView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ private extension SendMessageView {
6464
}
6565

6666
var sendButton: some View {
67-
Button(action: sendAction) {
67+
Button {
68+
isFocused = false
69+
sendAction()
70+
} label: {
6871
Label("Отправить", systemImage: "paperplane.fill")
6972
}
7073
.tint(.blue)

0 commit comments

Comments
 (0)