Skip to content

Commit 25cf980

Browse files
fix: only show keyboard once text field has been tapped
1 parent a1f4af7 commit 25cf980

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/MFAResolutionView.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,6 @@ extension MFAResolutionView: View {
249249
.keyboardType(.numberPad)
250250
.focused($focus, equals: .verificationCode)
251251
.accessibilityIdentifier("sms-verification-code-field")
252-
.onAppear {
253-
focus = .verificationCode
254-
}
255252
}
256253
.padding(.horizontal)
257254
}
@@ -293,9 +290,6 @@ extension MFAResolutionView: View {
293290
.keyboardType(.numberPad)
294291
.focused($focus, equals: .totpCode)
295292
.accessibilityIdentifier("totp-verification-code-field")
296-
.onAppear {
297-
focus = .totpCode
298-
}
299293
}
300294
.padding(.horizontal)
301295
}

0 commit comments

Comments
 (0)