Commit fe555e86 authored by Phil Hughes's avatar Phil Hughes

Fixes the search losing focus

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

Closes #35515
parent 4bb9a36c
......@@ -730,10 +730,10 @@ GitLabDropdown = (function() {
GitLabDropdown.prototype.focusTextInput = function(triggerFocus = false) {
if (this.options.filterable) {
$(':focus').blur();
this.dropdown.one('transitionend', () => {
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