mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
53881: facet search boxes finished
This commit is contained in:
@@ -4,12 +4,12 @@ import {Directive, ElementRef, Output, EventEmitter, HostListener} from '@angula
|
||||
selector: '[dsClickOutside]'
|
||||
})
|
||||
export class ClickOutsideDirective {
|
||||
constructor(private _elementRef: ElementRef) {
|
||||
}
|
||||
|
||||
@Output()
|
||||
public dsClickOutside = new EventEmitter();
|
||||
|
||||
constructor(private _elementRef: ElementRef) {
|
||||
}
|
||||
|
||||
@HostListener('document:click', ['$event.target'])
|
||||
public onClick(targetElement) {
|
||||
const clickedInside = this._elementRef.nativeElement.contains(targetElement);
|
||||
|
Reference in New Issue
Block a user