Merge branch '40373-fix-issue-note-submit-disabled-on-paste' into 'master'

Fix Issue comment submit button disabled on GFM paste

Closes #40373

See merge request gitlab-org/gitlab-ce!15530
This commit is contained in:
Clement Ho 2017-11-28 19:03:23 +00:00
commit 1ce27c7d78
2 changed files with 7 additions and 1 deletions

View file

@ -190,7 +190,7 @@ export const insertText = (target, text) => {
target.selectionStart = target.selectionEnd = selectionStart + insertedText.length; target.selectionStart = target.selectionEnd = selectionStart + insertedText.length;
// Trigger autosave // Trigger autosave
$(target).trigger('input'); target.dispatchEvent(new Event('input'));
// Trigger autosize // Trigger autosize
const event = document.createEvent('Event'); const event = document.createEvent('Event');

View file

@ -0,0 +1,6 @@
---
title: Fix Issue comment submit button being disabled when pasting content from another
GFM note
merge_request: 15530
author:
type: fixed