Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
GhenadieVP committed Mar 26, 2024
1 parent 9b5ff6f commit 27f7325
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion RadixWallet/Features/ImportMnemonic/ImportMnemonic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ public struct ImportMnemonic: Sendable, FeatureReducer {
switch internalAction {
case let .focusNext(id):
state.idOfWordWithTextFieldFocus = id
state.words[id: id]?.focus()
// FIXME: Temporary workaround. Have a proper fix for the keyboard being broken with autoadvance
// state.words[id: id]?.focus()
return .none

case let .saveFactorSourceResult(.failure(error)):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,14 @@ extension ImportMnemonicWord {
set: { viewStore.send(.wordChanged(input: $0.lowercased().trimmingWhitespacesAndNewlines())) }
),
hint: viewStore.hint,
// FIXME: Bring back autofocus
// focus: .on(
// .textField,
// binding: viewStore.binding(
// get: \.focusedField,
// send: { .textFieldFocused($0) }
// ),
// to: $focusedField
// ),
focus: .on(
.textField,
binding: viewStore.binding(
get: \.focusedField,
send: { .textFieldFocused($0) }
),
to: $focusedField
),
showClearButton: viewStore.showClearButton,
innerAccessory: {
if viewStore.displayValidAccessory {
Expand Down

0 comments on commit 27f7325

Please sign in to comment.