Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #8445: View recovery phrases button is not tappable #8473

Merged
merged 2 commits into from
Nov 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ struct BackupWalletView: View {
// user can press return in field to execute when continue button is disabled
return
}

// password filed resign first responder in case ScrollView gets changed
StephenHeaps marked this conversation as resolved.
Show resolved Hide resolved
// which could effect the next step. Details see #8445
resignFirstResponder()

keyringStore.recoveryPhrase(password: password) { words in
if words.isEmpty {
passwordError = .incorrectPassword
Expand All @@ -42,6 +47,10 @@ struct BackupWalletView: View {
}
}
}

private func resignFirstResponder() {
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
}

var body: some View {
ScrollView(.vertical) {
Expand Down