Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 471be79

Browse files
matanlureynshahan
authored andcommitted
This is a no-op, but I may not have changed _all_ of the host bindings or listeners in this CL (please await upcoming CLs). The host: const { ... } syntax is deprecated.
PiperOrigin-RevId: 196999014
1 parent 980e256 commit 471be79

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/app_layout/material_temporary_drawer.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ import 'material_drawer_base.dart';
2626
const Provider(DeferredContentAware,
2727
useExisting: MaterialTemporaryDrawerComponent),
2828
],
29-
host: const {
30-
// TODO(google) click is not accessible; add bindings for esc key. This
31-
// should also block keyboard selection outside of the drawer, while open.
32-
'(click)': 'toggle()',
33-
},
3429
templateUrl: 'material_temporary_drawer.html',
3530
styleUrls: const ['material_temporary_drawer.scss.css'],
3631
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -44,4 +39,10 @@ class MaterialTemporaryDrawerComponent extends MaterialDrawerBase {
4439

4540
@HostBinding('class.mat-drawer-expanded')
4641
bool get hostMatDrawerExpanded => visible;
42+
43+
// TODO(google) click is not accessible; add bindings for esc key. This
44+
// should also block keyboard selection outside of the drawer, while open.
45+
@HostListener('click')
46+
@override
47+
void toggle() => super.toggle();
4748
}

0 commit comments

Comments
 (0)