Initial tabbable search results implementation

Refs #371
This commit is contained in:
Will Abson
2016-10-24 09:54:10 +01:00
parent 7a4bb0aec9
commit 964111a3b6
5 changed files with 44 additions and 4 deletions

View File

@@ -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;
}
}