Fixes the search losing focus

This was caused by the blur & then the focus after transition end

Closes #35515
This commit is contained in:
Phil Hughes 2017-08-01 10:29:55 +01:00
parent 4bb9a36c97
commit fe555e86fb
No known key found for this signature in database
GPG Key ID: DB8CE4B3A3EE91AB
2 changed files with 7 additions and 3 deletions

View File

@ -730,10 +730,10 @@ GitLabDropdown = (function() {
GitLabDropdown.prototype.focusTextInput = function(triggerFocus = false) {
if (this.options.filterable) {
$(':focus').blur();
this.dropdown.one('transitionend', () => {
this.filterInput.focus();
if (this.dropdown.is('.open')) {
this.filterInput.focus();
}
});
if (triggerFocus) {

View File

@ -0,0 +1,4 @@
---
title: Fix search box losing focus when typing
merge_request:
author: