Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c073bb77
Commit
c073bb77
authored
Jun 27, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Focus add issuable form input when expanded
See
https://gitlab.com/gitlab-org/gitlab-ce/issues/34336
parent
7b251c30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
app/assets/javascripts/issuable/related_issues/components/add_issuable_form.vue
.../issuable/related_issues/components/add_issuable_form.vue
+3
-0
No files found.
app/assets/javascripts/issuable/related_issues/components/add_issuable_form.vue
View file @
c073bb77
...
@@ -84,12 +84,15 @@ export default {
...
@@ -84,12 +84,15 @@ export default {
mounted
()
{
mounted
()
{
const
$input
=
$
(
this
.
$refs
.
input
);
const
$input
=
$
(
this
.
$refs
.
input
);
new
GfmAutoComplete
(
this
.
autoCompleteSources
).
setup
(
$input
,
{
new
GfmAutoComplete
(
this
.
autoCompleteSources
).
setup
(
$input
,
{
issues
:
true
,
issues
:
true
,
});
});
$input
.
on
(
'
shown-issues.atwho
'
,
this
.
onAutoCompleteToggled
.
bind
(
this
,
true
));
$input
.
on
(
'
shown-issues.atwho
'
,
this
.
onAutoCompleteToggled
.
bind
(
this
,
true
));
$input
.
on
(
'
hidden-issues.atwho
'
,
this
.
onAutoCompleteToggled
.
bind
(
this
,
false
));
$input
.
on
(
'
hidden-issues.atwho
'
,
this
.
onAutoCompleteToggled
.
bind
(
this
,
false
));
$input
.
on
(
'
inserted-issues.atwho
'
,
this
.
onInput
);
$input
.
on
(
'
inserted-issues.atwho
'
,
this
.
onInput
);
this
.
$refs
.
input
.
focus
();
},
},
beforeDestroy
()
{
beforeDestroy
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment