angulardart / angular_components

The official Material Design components for AngularDart. Used at Google in production apps.
https://pub.dev/packages/angular_components
372 stars 123 forks source link

dialog autodismiss on firefox, close when changing tab #423

Open lejard-h opened 5 years ago

lejard-h commented 5 years ago

Tested on Firefox 67.0.1 with the current gallery https://dart-lang.github.io/angular_components/#/material_dialog, on the auto dissmiss example.

How to reproduce ?

The dialog is closing itself, it seems the (dissmiss) event is called.

nshahan commented 5 years ago

Thanks for the report.

lejard-h commented 5 years ago

It seems Firefox is triggering focus event on document when changing tab

https://github.com/dart-lang/angular_components/blob/37b2b4b940d91747678bd18e29c55c8a876498ee/angular_components/lib/utils/browser/events/events.dart#L126