Browse Source
* Remove appBlurClick throughout the popup code `appBlurClick` leads to focus being lost/reset for assistive technology users. It should not be necessary in any case - if focus does need to move after an action, explicitly set it somewhere programmatically using `focus()` rather than relying on browser heuristics * Remove now redundant blur-click directivepull/3326/head
4 changed files with 2 additions and 24 deletions
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
import { Directive, ElementRef, HostListener } from "@angular/core"; |
||||
|
||||
@Directive({ |
||||
selector: "[appBlurClick]", |
||||
}) |
||||
export class BlurClickDirective { |
||||
constructor(private el: ElementRef) {} |
||||
|
||||
@HostListener("click") onClick() { |
||||
this.el.nativeElement.blur(); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue