diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-11-28 22:03:23 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-11-28 22:03:23 +0300 |
commit | 1ce27c7d78f0833985ef82b0018064d3c821b9fe (patch) | |
tree | 13616d13e64360605cb9cc4c40a5f592d981fccc /app/assets | |
parent | 7bab05b77041b40f8daf530744fc0c10b6c2330f (diff) | |
parent | 078ba6a2d677abeea7b4bf4090fd0577e94b6ff5 (diff) |
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
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index 6fa1e84c170..33cc807912c 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -190,7 +190,7 @@ export const insertText = (target, text) => { target.selectionStart = target.selectionEnd = selectionStart + insertedText.length; // Trigger autosave - $(target).trigger('input'); + target.dispatchEvent(new Event('input')); // Trigger autosize const event = document.createEvent('Event'); |