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
2 changed files with 7 additions and 3 deletions
|
@ -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) {
|
||||
|
|
4
changelogs/unreleased/search-flickering.yml
Normal file
4
changelogs/unreleased/search-flickering.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Fix search box losing focus when typing
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in a new issue