@@ -84,7 +84,7 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
84
84
// In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
85
85
// to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
86
86
// can move this back into `host`.
87
- // tslint:disable:no-host-decorator-in-concrete
87
+ // tslint:disable-next-line :no-host-decorator-in-concrete
88
88
@HostListener ( 'ngSubmit' )
89
89
handleFormSubmit ( ) : void {
90
90
if ( this . ignoreSubmitUnlessValid && ! this . editRef . isValid ( ) ) { return ; }
@@ -107,7 +107,7 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
107
107
// In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
108
108
// to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
109
109
// can move this back into `host`.
110
- // tslint:disable:no-host-decorator-in-concrete
110
+ // tslint:disable-next-line :no-host-decorator-in-concrete
111
111
@HostListener ( 'document:click' , [ '$event' ] )
112
112
handlePossibleClickOut ( evt : Event ) : void {
113
113
if ( closest ( evt . target , EDIT_PANE_SELECTOR ) ) { return ; }
@@ -128,7 +128,7 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
128
128
// In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
129
129
// to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
130
130
// can move this back into `host`.
131
- // tslint:disable:no-host-decorator-in-concrete
131
+ // tslint:disable-next-line :no-host-decorator-in-concrete
132
132
@HostListener ( 'keydown' , [ '$event' ] )
133
133
_handleKeydown ( event : KeyboardEvent ) {
134
134
if ( event . key === 'Escape' && ! hasModifierKey ( event ) ) {
@@ -167,7 +167,7 @@ export class CdkEditRevert<FormValue> {
167
167
// In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
168
168
// to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
169
169
// can move this back into `host`.
170
- // tslint:disable:no-host-decorator-in-concrete
170
+ // tslint:disable-next-line :no-host-decorator-in-concrete
171
171
@HostListener ( 'click' )
172
172
revertEdit ( ) : void {
173
173
this . editRef . reset ( ) ;
@@ -192,10 +192,8 @@ export class CdkEditClose<FormValue> {
192
192
// In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
193
193
// to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
194
194
// can move this back into `host`.
195
- // tslint:disable:no-host-decorator-in-concrete
196
- @HostListener ( 'click' )
197
- @HostListener ( 'keydown.enter' )
198
- @HostListener ( 'keydown.space' )
195
+ // tslint:disable-next-line:no-host-decorator-in-concrete
196
+ @HostListener ( 'click' ) @HostListener ( 'keydown.enter' ) @HostListener ( 'keydown.space' )
199
197
closeEdit ( ) : void {
200
198
// Note that we use `click` here, rather than a keyboard event, because some screen readers
201
199
// will emit a fake click event instead of an enter keyboard event on buttons. For the keyboard
0 commit comments