Skip to content

[FormBuilderTextField]: Keyboard closes immediately when using FormBuilderTextField in Flutter Web 3.29.0 #1481

Open
@dorklein

Description

@dorklein

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

10.0.0

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.3.1 24D70 darwin-arm64, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] Connected device (3 available)
[✓] Network resources

Minimal code example

Code sample
FormBuilderTextField(
    name: 'name',
    controller: controller,
    decoration: InputDecoration(
      labelText: 'Name',
    ),
  );

Current Behavior

When running in web mobile, when tapping on the field, it doesn't allow to focus or open the keyboard. (listening to the focus node it shows gaining focus for a split second and being unfocused immediately).

It also doesn't work with autofocus: true.

The same Issue happens when using TextFormField. But the issue does not exists when using TextField.

Expected Behavior

The field should receive focus when tapped.

Steps To Reproduce

Run any flutter app in web on mobile devices (or emulator)

flutter run -d web-server --web-port <PORT> --web-hostname 0.0.0.0 

# proxy to the emulator or device
adb reverse tcp:<PORT> tcp:<PORT>

open localhost:<PORT> in the mobile device browser.

Aditional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingoriginates from dependencyThe issue originates from package dependency

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions