mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
@@ -138,6 +138,10 @@ export class AlfrescoSearchControlComponent implements OnInit {
|
||||
|
||||
onBlur(): void {
|
||||
window.setTimeout(() => {
|
||||
let focusedEl = document.activeElement;
|
||||
if (focusedEl && focusedEl.id && focusedEl.id.indexOf('result_row_') === 0) {
|
||||
return;
|
||||
}
|
||||
this.searchActive = false;
|
||||
}, 200);
|
||||
if (this.expandable && (this.searchControl.value === '' || this.searchControl.value === undefined)) {
|
||||
@@ -155,4 +159,8 @@ export class AlfrescoSearchControlComponent implements OnInit {
|
||||
this.searchActive = true;
|
||||
}
|
||||
|
||||
onAutoCompleteBlur(): void {
|
||||
this.searchActive = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user