diff options
Diffstat (limited to 'web_src/js/features/repo-release.js')
-rw-r--r-- | web_src/js/features/repo-release.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/features/repo-release.js b/web_src/js/features/repo-release.js index f3cfa74418..2be1ec58c6 100644 --- a/web_src/js/features/repo-release.js +++ b/web_src/js/features/repo-release.js @@ -20,7 +20,7 @@ export function initRepoReleaseNew() { } function initTagNameEditor() { - const el = document.getElementById('tag-name-editor'); + const el = document.querySelector('#tag-name-editor'); if (!el) return; const existingTags = JSON.parse(el.getAttribute('data-existing-tags')); @@ -30,10 +30,10 @@ function initTagNameEditor() { const newTagHelperText = el.getAttribute('data-tag-helper-new'); const existingTagHelperText = el.getAttribute('data-tag-helper-existing'); - const tagNameInput = document.getElementById('tag-name'); + const tagNameInput = document.querySelector('#tag-name'); const hideTargetInput = function(tagNameInput) { const value = tagNameInput.value; - const tagHelper = document.getElementById('tag-helper'); + const tagHelper = document.querySelector('#tag-helper'); if (existingTags.includes(value)) { // If the tag already exists, hide the target branch selector. hideElem('#tag-target-selector'); |