diff options
author | Alfredo Sumaran <a.sumaran@gmail.com> | 2017-03-21 20:06:52 -0500 |
---|---|---|
committer | Alfredo Sumaran <a.sumaran@gmail.com> | 2017-03-21 20:06:52 -0500 |
commit | 2886f1d45829d310c20229ee8b22e56b607a1ef7 (patch) | |
tree | f67ff5a4e476af7a76a9b2d69f243930c3189bd2 | |
parent | 45a2f9009bca7a2ba86688f1cf3945dde4381c77 (diff) | |
download | gitlab-ce-2886f1d45829d310c20229ee8b22e56b607a1ef7.tar.gz |
Reset dropdown list when clicking filter input
-rw-r--r-- | app/assets/javascripts/droplab/droplab_filter.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/droplab/droplab_filter.js b/app/assets/javascripts/droplab/droplab_filter.js index 9b40a3f20a4..7f7d93f3e27 100644 --- a/app/assets/javascripts/droplab/droplab_filter.js +++ b/app/assets/javascripts/droplab/droplab_filter.js @@ -56,10 +56,12 @@ require('../window')(function(w){ this.hookInput = hookInput; this.hookInput.trigger.addEventListener('keyup.dl', this.keydownWrapper); + this.hookInput.trigger.addEventListener('mousedown.dl', this.keydownWrapper); }, destroy: function destroy(){ this.hookInput.trigger.removeEventListener('keyup.dl', this.keydownWrapper); + this.hookInput.trigger.removeEventListener('mousedown.dl', this.keydownWrapper); } }; }); |