Fixes the search losing focus
This was caused by the blur & then the focus after transition end Closes #35515
This commit is contained in:
parent
4bb9a36c97
commit
fe555e86fb
|
@ -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) {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Fix search box losing focus when typing
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in New Issue