未验证 提交 fe555e86 编写于 作者: P Phil Hughes

Fixes the search losing focus

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

Closes #35515
上级 4bb9a36c
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册