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
8bb34a5e
Commit
8bb34a5e
authored
Oct 05, 2021
by
Furkan Ayhan
Committed by
Phil Hughes
Oct 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sending multiple comment on note replies
parent
708ffb4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
app/assets/javascripts/notes/components/note_form.vue
app/assets/javascripts/notes/components/note_form.vue
+1
-0
spec/frontend/notes/components/note_form_spec.js
spec/frontend/notes/components/note_form_spec.js
+10
-0
No files found.
app/assets/javascripts/notes/components/note_form.vue
View file @
8bb34a5e
...
...
@@ -348,6 +348,7 @@ export default {
id=
"note_note"
ref=
"textarea"
v-model=
"updatedNoteBody"
:disabled=
"isSubmitting"
:data-supports-quick-actions=
"!isEditing && !glFeatures.tributeAutocomplete"
name=
"note[note]"
class=
"note-textarea js-gfm-input js-note-text js-autosize markdown-area js-vue-issue-note-form"
...
...
spec/frontend/notes/components/note_form_spec.js
View file @
8bb34a5e
...
...
@@ -150,6 +150,16 @@ describe('issue_note_form component', () => {
expect
(
handleFormUpdate
.
length
).
toBe
(
1
);
});
it
(
'
should disable textarea when ctrl+enter is pressed
'
,
async
()
=>
{
textarea
.
trigger
(
'
keydown.enter
'
,
{
ctrlKey
:
true
});
expect
(
textarea
.
attributes
(
'
disabled
'
)).
toBeUndefined
();
await
nextTick
();
expect
(
textarea
.
attributes
(
'
disabled
'
)).
toBe
(
'
disabled
'
);
});
});
});
...
...
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