@@ -84,7 +84,7 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
8484 // In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
8585 // to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
8686 // can move this back into `host`.
87- // tslint:disable:no-host-decorator-in-concrete
87+ // tslint:disable-next-line :no-host-decorator-in-concrete
8888 @HostListener ( 'ngSubmit' )
8989 handleFormSubmit ( ) : void {
9090 if ( this . ignoreSubmitUnlessValid && ! this . editRef . isValid ( ) ) { return ; }
@@ -107,7 +107,7 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
107107 // In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
108108 // to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
109109 // can move this back into `host`.
110- // tslint:disable:no-host-decorator-in-concrete
110+ // tslint:disable-next-line :no-host-decorator-in-concrete
111111 @HostListener ( 'document:click' , [ '$event' ] )
112112 handlePossibleClickOut ( evt : Event ) : void {
113113 if ( closest ( evt . target , EDIT_PANE_SELECTOR ) ) { return ; }
@@ -128,7 +128,7 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
128128 // In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
129129 // to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
130130 // can move this back into `host`.
131- // tslint:disable:no-host-decorator-in-concrete
131+ // tslint:disable-next-line :no-host-decorator-in-concrete
132132 @HostListener ( 'keydown' , [ '$event' ] )
133133 _handleKeydown ( event : KeyboardEvent ) {
134134 if ( event . key === 'Escape' && ! hasModifierKey ( event ) ) {
@@ -167,7 +167,7 @@ export class CdkEditRevert<FormValue> {
167167 // In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
168168 // to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
169169 // can move this back into `host`.
170- // tslint:disable:no-host-decorator-in-concrete
170+ // tslint:disable-next-line :no-host-decorator-in-concrete
171171 @HostListener ( 'click' )
172172 revertEdit ( ) : void {
173173 this . editRef . reset ( ) ;
@@ -192,10 +192,8 @@ export class CdkEditClose<FormValue> {
192192 // In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
193193 // to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
194194 // 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' )
199197 closeEdit ( ) : void {
200198 // Note that we use `click` here, rather than a keyboard event, because some screen readers
201199 // will emit a fake click event instead of an enter keyboard event on buttons. For the keyboard
0 commit comments