(ngSubmit) and (submit) do not prevent default form submit causing a page reload #1891
Description
(ngSubmit) and (submit) do not prevent default form submit causing a page reload
- Dart VM version: 2.7.1 (Thu Jan 23 13:02:26 2020 +0100) on "windows_x64"
- AngularDart Version ^5.3.0
- Whether you are using Windows, macOS, or Linux
- Whether you are using Chrome 81.0.4044.122 64 bits
- angular_components: ^0.13.0 angular_forms: ^2.1.2 angular_test: ^2.3.0 build_runner: ^1.6.0 build_web_compilers: ^2.3.0 build_test: ^0.10.8 pedantic: ^1.8.0 test: ^1.6.0
(ngSubmit) and (submit) do not prevent default form submit causing a page reload
and causing EXCEPTION TypeError on dart2js
webdev serve --hostname localhost --release
VM3327 main.dart.js:5232 EXCEPTION: TypeError: Instance of 'cp': type 'cp' is not a subtype of type 'minified:n'
STACKTRACE:
TypeError: Instance of 'cp': type 'cp' is not a subtype of type 'minified:n'
at Object.b (http://localhost:8080/main.dart.js:193:3)
at Object.m (http://localhost:8080/main.dart.js:545:48)
at eI.$0 (http://localhost:8080/main.dart.js:5788:34)
at hJ.$0 (http://localhost:8080/main.dart.js:5975:14)
at i9.k4 [as $1$4] (http://localhost:8080/main.dart.js:1066:9)
at b9.cr (http://localhost:8080/main.dart.js:5916:79)
at Object.eval (eval at lf (http://localhost:8080/main.dart.js:333:8), :3:43)
at j0.C (http://localhost:8080/main.dart.js:3472:79)
at j0.W (http://localhost:8080/main.dart.js:3440:10)
at eJ.$1 (http://localhost:8080/main.dart.js:5785:5)
$1 @ VM3327 main.dart.js:5232
$1 @ VM3327 main.dart.js:5984
k5 @ VM3327 main.dart.js:1078
ct @ VM3327 main.dart.js:5926
eval @ VM3359:3
a5 @ VM3327 main.dart.js:3479
aU @ VM3327 main.dart.js:3446
ai @ VM3327 main.dart.js:3356
bU @ VM3327 main.dart.js:3340
ai @ VM3327 main.dart.js:3093
k @ VM3327 main.dart.js:3059
eu @ VM3327 main.dart.js:5944
eval @ VM3351:3
a2 @ VM3327 main.dart.js:3464
W @ VM3327 main.dart.js:3442
$1 @ VM3327 main.dart.js:5785
oj @ VM3327 main.dart.js:266
(anonymous) @ VM3327 main.dart.js:274
Navigated to http://localhost:8080/?
project for reproducer bug
https://github.com/insinfo/angular_form_bug
It works:
Microsoft Edge 44.18362.449.0 Windows 10 64-bit;
Firefox 72.0.2 64-bit Windows 10 64-bit;
Firefox Developer 72.0b5 64-bit Windows 10 64-bit;
Internet Explorer 11.657.18362.0 Windows 10 64-bit
Safari 5.1.7 (7534.57.2) Windows 10 64-bit
Google Chrome iphone 6S ios 13.3.1
Google Chrome Linux Ubuntu 18
Google Chrome Android 9
Does not work:
New Microsoft Edge 81.0.416.64 Windows 10 64-bit
Google Chrome 81.0.4044.122 64-bit Windows 10 64-bit
Brave 1.7.98 Chromium: 81.0.4044.113 64-bit Windows 10 64-bit
Opera 68.0.3618.63 Windows 10 64-bit
Vivaldi 3.0.1874.33 64-bit Windows 10 64-bit
Firefox 75.0 64bits Linux Ubuntu 18