Skip to content

[web] When input is focused, hovering over it throws exceptions #159804

@mdebbar

Description

@mdebbar

I'm seeing this in Chrome 131 on MacOS Sequoia.

Stacktrace:

Uncaught DartError: Assertion failed: org-dartlang-sdk:///lib/_engine/engine/pointer_binding/event_position_helper.dart:80:10
targetElement == domElement
"The targeted input element must be the active input element"
    at Object.throw_ [as throw] (errors.dart:307:3)
    at Object.assertFailed (profile.dart:117:39)
    at Object._computeOffsetForInputs (profile.dart:117:39)
    at Object.computeEventOffsetToTarget (event_position_helper.dart:38:14)
    at [_convertEventsToPointerData] (pointer_binding.dart:1117:30)
    at pointer_binding.dart:1045:9
    at pointer_binding.dart:965:7
    at loggedHandler (pointer_binding.dart:558:9)
    at Object._callDartFunctionFast1 (js_allow_interop_patch.dart:224:27)
    at ret (js_allow_interop_patch.dart:84:15)

Code sample:

import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Padding(
            padding: const EdgeInsets.all(24.0),
            child: TextField(),
          ),
        ],
      ),
    ),
  ));
}

Repro steps:

  1. Click the text field to activate it.
  2. Hover over the text field.
  3. See errors thrown in the console.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsf: gesturesflutter/packages/flutter/gestures repository.platform-webWeb applications specificallyteam-webOwned by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions