Commit 56046ca8 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'search-flickering' into 'master'

Fixes the search losing focus

Closes #35515

See merge request !13221
parents 4c77c30f fe555e86
......@@ -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) {
......
---
title: Fix search box losing focus when typing
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment