This commit is contained in:
parent
9a79f37bf1
commit
e98f288302
|
@ -1,18 +1,17 @@
|
||||||
import { Directive, HostListener } from '@angular/core';
|
import { Directive, HostListener } from '@angular/core'
|
||||||
|
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '[appStealFocus]'
|
selector: '[appStealFocus]'
|
||||||
})
|
})
|
||||||
export class StealFocusDirective {
|
export class StealFocusDirective {
|
||||||
|
constructor() {}
|
||||||
constructor() { }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For some reason newest version of Clarity v17.0.1 is stealing focus when
|
* For some reason newest version of Clarity v17.0.1 is stealing focus when
|
||||||
* clicking on the input inside of the clr-tree-view
|
* clicking on the input inside of the clr-tree-view
|
||||||
* This is workaround
|
* This is workaround
|
||||||
*/
|
*/
|
||||||
@HostListener('click', ['$event']) onClick(event: any){
|
@HostListener('click', ['$event']) onClick(event: any) {
|
||||||
event.target.focus()
|
event.target.focus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user