diff options
| author | Eric Eastwood <contact@ericeastwood.com> | 2017-11-21 15:36:15 -0600 |
|---|---|---|
| committer | Eric Eastwood <contact@ericeastwood.com> | 2017-11-28 10:53:01 -0600 |
| commit | 078ba6a2d677abeea7b4bf4090fd0577e94b6ff5 (patch) | |
| tree | 107a4825dbfb1364bcf122b595aa42390ae20be3 /app/models/commit.rb | |
| parent | 52f5259ae40cfd868c6412ba10e28dc83877afbb (diff) | |
| download | gitlab-ce-078ba6a2d677abeea7b4bf4090fd0577e94b6ff5.tar.gz | |
Fix issue comment submit button disabled on GFM paste
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/40373
When copying some text from another note and paste,
it goes through `copy_as_gfm` `paste` handler
that calls `e.preventDefault()` which stops things.
But then when inserting the text, we manually trigger
an `input` event with jQuery which doesn't seem to be
picked up by Vue `v-model`.
Using copy/paste trick from https://stackoverflow.com/a/41046276/796832
Diffstat (limited to 'app/models/commit.rb')
0 files changed, 0 insertions, 0 deletions
