Commit 429c7f8f authored by Clement Ho's avatar Clement Ho

Add focus check for gldropdown

parent 1b27524a
...@@ -801,7 +801,7 @@ GitLabDropdown = (function() { ...@@ -801,7 +801,7 @@ GitLabDropdown = (function() {
if (this.options.filterable) { if (this.options.filterable) {
const initialScrollTop = $(window).scrollTop(); const initialScrollTop = $(window).scrollTop();
if (this.dropdown.is('.show')) { if (this.dropdown.is('.show') && !this.filterInput.is(':focus')) {
this.filterInput.focus(); this.filterInput.focus();
} }
......
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