diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-11 21:09:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-11 21:09:46 +0300 |
commit | 5da842297dfad0ce52724aa4fd7f19b1307b7a11 (patch) | |
tree | 24f5a79281ea348ac0a43e462f84d4216b7c60c8 /app/assets/javascripts/blob | |
parent | 046d6f52772ada2e08af58627f03bc18e0c932b5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/blob')
-rw-r--r-- | app/assets/javascripts/blob/file_template_mediator.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/blob/file_template_mediator.js b/app/assets/javascripts/blob/file_template_mediator.js index 136457c115d..991f98c89e7 100644 --- a/app/assets/javascripts/blob/file_template_mediator.js +++ b/app/assets/javascripts/blob/file_template_mediator.js @@ -247,7 +247,11 @@ export default class FileTemplateMediator { } setFilename(name) { - this.$filenameInput.val(name).trigger('change'); + const input = this.$filenameInput.get(0); + if (name !== undefined && input.value !== name) { + input.value = name; + input.dispatchEvent(new Event('change')); + } } getSelected() { |