Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !14539

Trigger change event of the markdown textarea to allow Vue catch the programmatic changes.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Fatih Acet requested to merge acet-fix-paste-on-comment-form into master Sep 27, 2017
  • Overview 11
  • Commits 1
  • Pipelines 1
  • Changes 1
Before After
_fix-paste-before _fix-paste

Here is what happens step by step.

  • We paste an image
  • We know that there is an attachment in the pasted thing
  • We show a placeholder text, like {{foo}}
  • We start uploading the file
  • We programmatically change the value of the textarea after upload finished

At this point Vue doesn't catch the programmatically changed textarea value. So in the dropzone.js's paste handler I triggered change event of the textarea manually.

Fixes #38441 (closed)

Edited Sep 27, 2017 by Fatih Acet
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: acet-fix-paste-on-comment-form