Skip to content

[Android] CardField ignores autofocus prop when it's single field on the page #2366

@TatsuUkraine

Description

@TatsuUkraine

Describe the bug
Input forces focus and brings the keyboard when it shouldn't. Widget forces keyboard to appear on navigation after component no longer exists

To Reproduce

  1. Ensure CardField only one input on the screen

Expected behavior
The field is focused only when the user taps on it or when autofocus is TRUE

Current behavior
Field autofocused on it's own. During navigation to next screen it forces the keyboard to show up if all card details were entered in the field

Smartphone / tablet

  • Package version: 12.4.0
  • Flutter version 3.38.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions