mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.08k stars 2.88k forks source link

Update CreditCardInputField to use FocusState in getTextField once iOS 14 is dropped #15504

Open data-sync-user opened 12 months ago

data-sync-user commented 12 months ago

Update the following method in CreditCardInputField when iOS14 min version is dropped to use FocusState

private func getTextField(editMode: Bool) -> some View {
        // TODO: FXIOS-6984 - use FocusState when iOS 14 is dropped
        TextField(text, text: $text, onEditingChanged: { (changed) in
            if !changed {
                self.handleDidEndEditing()
            }
        })
        .preferredBodyFont(size: 17)
        .disabled(editMode)
        .padding(.top, 7.5)

┆Issue is synchronized with this Jira Task

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale. Has the issue been fixed, or does it still require the community's attention? Please leave any comment to keep this issue opened. It will be closed automatically if no further update occurs in the next 30 days. Thank you for your contributions!