Open
Description
I'm facing an issue where I'm getting an error coming from the Dart SDK when using the Dashlane Chrome extension to fill a text input:
Uncaught (in promise) Error: Expected a value of type 'MouseEvent$', but got one of type 'Event$'
at Object.throw_ [as throw] (errors.dart:291:21)
at Object.castError (errors.dart:127:3)
at Object.cast [as as] (operations.dart:742:12)
at MouseEvent$.as_C [as as] (classes.dart:660:14)
at Object._argumentErrors (operations.dart:364:42)
at Object._checkAndCall (operations.dart:570:22)
at Object.dcall (operations.dart:579:39)
at html_dart2js.dart:37236:58
at _rootRunUnary (zone.dart:1415:13)
at async._CustomZone.new.runUnary (zone.dart:1308:19)
at async._CustomZone.new.runUnaryGuarded (zone.dart:1217:7)
at HTMLDivElement.<anonymous> (zone.dart:1254:26)
The input is created like this:
final InputElement _emailInput = InputElement()
..placeholder = 'Your email address'
..type = 'email';
How can we ignore events that are not implementing MouseEvent
?
Details
- Dart 3.1.2 (stable) (Tue Sep 12 16:26:23 2023 +0000) on "macos_arm64"
- macos / Version 13.4.1 (Build 22F82)
- dependencies: args, collection, http, image, intl, meta, path, pdf, synchronized, uuid, vector_math
- dev_dependencies: build_runner, build_test, build_web_compilers, cli_util, lints, sass_builder, test
- Chrome 117