diff --git a/js/attachment.js b/js/attachment.js index 4538402080..05289bcd3e 100644 --- a/js/attachment.js +++ b/js/attachment.js @@ -1220,7 +1220,6 @@ Bugzilla.AttachmentForm = class AttachmentForm { this.$typeManual.checked = true; } else { this.$typeList.checked = true; - this.$typeSelect.options[0].selected = true; } } @@ -1277,6 +1276,10 @@ Bugzilla.AttachmentForm = class AttachmentForm { const mode = this.$typeInput.value ? 'manual' : 'list'; this.selectContentTypeMode(mode); + + if (mode === 'list') { + this.$typeSelect.options[0].selected = true; + } } /**