Blur search field on click first entry
This commit is contained in:
parent
f189da237d
commit
a0f9e995d5
@ -264,6 +264,7 @@ export class GlobalSearchComponent implements OnInit {
|
|||||||
this.resultsDropdown.isOpen()
|
this.resultsDropdown.isOpen()
|
||||||
) {
|
) {
|
||||||
this.primaryButtons.first.nativeElement.click()
|
this.primaryButtons.first.nativeElement.click()
|
||||||
|
this.searchInput.nativeElement.blur()
|
||||||
} else if (event.key === 'Escape' && !this.resultsDropdown.isOpen()) {
|
} else if (event.key === 'Escape' && !this.resultsDropdown.isOpen()) {
|
||||||
if (this.query?.length) {
|
if (this.query?.length) {
|
||||||
this.reset(true)
|
this.reset(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user