Skip to content
Snippets Groups Projects
Unverified Commit fe555e86 authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixes the search losing focus

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

Closes #35515
parent 4bb9a36c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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) {
Loading
Loading
---
title: Fix search box losing focus when typing
merge_request:
author:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment