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
c622252b
Commit
c622252b
authored
Jun 26, 2018
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use refs instead of querySelector.
parent
13a8ad61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/diffs/components/diff_line_note_form.vue
...sets/javascripts/diffs/components/diff_line_note_form.vue
+2
-2
No files found.
app/assets/javascripts/diffs/components/diff_line_note_form.vue
View file @
c622252b
...
...
@@ -44,7 +44,6 @@ export default {
},
mounted
()
{
if
(
this
.
isLoggedIn
)
{
const
textarea
=
this
.
$el
.
querySelector
(
'
.js-note-text
'
);
const
noteableData
=
this
.
getNoteableData
;
const
keys
=
[
NOTE_TYPE
,
...
...
@@ -56,7 +55,7 @@ export default {
this
.
line
.
lineCode
,
];
this
.
autosave
=
new
Autosave
(
$
(
textarea
),
keys
);
this
.
autosave
=
new
Autosave
(
$
(
t
his
.
$refs
.
noteForm
.
$refs
.
t
extarea
),
keys
);
}
},
methods
:
{
...
...
@@ -103,6 +102,7 @@ export default {
class=
"content discussion-form discussion-form-container discussion-notes"
>
<note-form
ref=
"noteForm"
:is-editing=
"true"
:line-code=
"line.lineCode"
save-button-title=
"Comment"
...
...
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