From 085a97a8a1c20fbb06eb55249119e0e51bee517e Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 7 Oct 2026 06:03:03 -0400 Subject: [PATCH] Bug 2079152 - Unable to select content-type when creating attachment --- js/attachment.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; + } } /**