Commit c073bb77 authored by Eric Eastwood's avatar Eric Eastwood

Focus add issuable form input when expanded

See https://gitlab.com/gitlab-org/gitlab-ce/issues/34336
parent 7b251c30
......@@ -84,12 +84,15 @@ export default {
mounted() {
const $input = $(this.$refs.input);
new GfmAutoComplete(this.autoCompleteSources).setup($input, {
issues: true,
});
$input.on('shown-issues.atwho', this.onAutoCompleteToggled.bind(this, true));
$input.on('hidden-issues.atwho', this.onAutoCompleteToggled.bind(this, false));
$input.on('inserted-issues.atwho', this.onInput);
this.$refs.input.focus();
},
beforeDestroy() {
......
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