angular_components icon indicating copy to clipboard operation
angular_components copied to clipboard

dialog autodismiss on firefox, close when changing tab

Open lejard-h opened this issue 6 years ago • 2 comments

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 ?

  • On Firefox
  • Open the auto dissmissable dialog
  • change tab
  • return to the angular gallery tab

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

lejard-h avatar Jun 10 '19 14:06 lejard-h

Thanks for the report.

nshahan avatar Jun 10 '19 16:06 nshahan

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

lejard-h avatar Jun 11 '19 11:06 lejard-h