We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56dc193 + 79078b0 commit d71a25fCopy full SHA for d71a25f
Sources/ArcGISToolkit/Components/FormView/FormView.swift
@@ -53,8 +53,8 @@ public struct FormView: View {
53
}
54
55
56
- .onChange(of: model.focusedElement) { focusedElement in
57
- if let focusedElement {
+ .task(id: model.focusedElement) {
+ if let focusedElement = model.focusedElement {
58
withAnimation { scrollViewProxy.scrollTo(focusedElement, anchor: .top) }
59
60
0 commit comments