Skip to content

[web][iOS 27] Keyboard dismisses when long-press-dragging the text selection caret #189744

Closed

Description

@flutter-zl

Steps to reproduce

  1. On a physical iOS 27 device (Safari or any iOS browser, since all are WebKit), open a Flutter Web app with a TextField.
  2. Tap the field to focus it and bring up the keyboard.
  3. Long-press on the text to start a caret / selection drag, then drag.

Repro app (stock Flutter, no local patches): https://flutter-demo-47-before.web.app

Expected results

The keyboard stays up while dragging the caret, matching native iOS and iOS 26 behavior.

Actual results

Partway through the long-press drag the keyboard closes. The field loses its editing connection even though focus never left the page. (You can tap the field again to bring the keyboard back.)

Code sample

Repro app (stock Flutter, no local patches): https://flutter-demo-47-before.web.app

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Activity

  1. self-assigned this
    on Jul 20, 2026
  2. added
    P1High-priority issues at the top of the work list
    triaged-webTriaged by Web platform team
    a: text inputEntering text in a text field or keyboard related problems
    team-webOwned by Web platform team
    on Jul 20, 2026
  3. added a commit that references this issue on Aug 10, 2026
    347dff3
  4. jtmcdole commented on Aug 11, 2026

    @jtmcdole
    Member

    #190926 does not close this, it reopens it.

  5. added a commit that references this issue on Aug 11, 2026
    90cf7be
  6. Molhamalali commented on Sep 27, 2026

    @Molhamalali

    Thanks for the fix in #190942 (634b0ed). Could it be considered for a cherry-pick into the next 3.47 stable hotfix? It isn't in 3.47.5 or in 3.49.0-0.1.pre.

    Our impact: a Flutter web app (3.47, CanvasKit) installed on the iPhone home screen as a standalone web app. Staff take customer orders in it all day on iOS 27 — names, addresses and messages, often in Arabic. When they long-press to drag the caret back to a typo, the keyboard closes mid-drag and they have to tap the field again, which breaks order entry. There is no workaround on our side, as it is in the engine's hidden-input handling.

    Happy to test a build on an iOS 27 device if that helps.

  7. flutter-zl commented on Sep 28, 2026

    @flutter-zl
    ContributorAuthor

    Thanks for the fix in #190942 (634b0ed). Could it be considered for a cherry-pick into the next 3.47 stable hotfix? It isn't in 3.47.5 or in 3.49.0-0.1.pre.

    Our impact: a Flutter web app (3.47, CanvasKit) installed on the iPhone home screen as a standalone web app. Staff take customer orders in it all day on iOS 27 — names, addresses and messages, often in Arabic. When they long-press to drag the caret back to a typo, the keyboard closes mid-drag and they have to tap the field again, which breaks order entry. There is no workaround on our side, as it is in the engine's hidden-input handling.

    Happy to test a build on an iOS 27 device if that helps.

    @mdebbar @Renzo-Olivares , what do you think?

  8. mdebbar commented on Sep 28, 2026

    @mdebbar
    Contributor

    @Molhamalali if you could test it on your end too, that would be great!

  9. github-actions commented on Oct 12, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions