Skip to content

[Windows] Focus issues in HTML INPUTs #2736

@jmgeffroy66

Description

@jmgeffroy66

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When clicking between HTML input fields in a WebView on Windows:

  1. Click the first input field - it gets focus ✓
  2. Click the second input field - it briefly gets focus then immediately loses it ✗
  3. Need to click the second input field again to type in it

Please note that the issue also happens when tapping repeatedly on the same input: first time it gets focus, then loses it, then gets focus again etc. Each odd click it gets focus, each even click it loses it. It acts as a toggle...

I was using 6.2.0-Beta 2, downgraded to 6.1.5, same issue. This issue occurs 98% of the time, not always.

test_inapp_webview_input_focus_issue.zip

Expected Behavior

Expected behavior Input field should retain focus after the first click (like in Chrome browser).
Actual behavior: Input field loses focus immediately, requiring multiple clicks

Steps with code example to reproduce

  1. Click the first input field - it gets focus ✓
  2. Click the second input field - it briefly gets focus then immediately loses it ✗
  3. Need to click the second input field again to type in it

test_inapp_webview_input_focus_issue.zip

Stacktrace/Logs

Stacktrace/Logs
<Replace this line by pasting your stacktrace or logs here>

Flutter version

v3.38.1, v3.38.2

Operating System, Device-specific and/or Tool

Windows 11

Plugin version

v6.1.5, v6.2.0-Beta2

Additional information

No response

Self grab

  • I'm ready to work on this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions