Bug 1504455 - when creating a new row in the addressing widget, don't switch back to To: (analysis by :mkmelin). r=mkmelin
authorJorg K <jorgk@jorgk.com>
Mon, 11 Nov 2019 23:24:51 +0100
changeset 37481 84b703945054180f18883e264044f1179eee89b1
parent 37480 99690c17bfc69570faaa598d6adc234610289663
child 37482 fb1c453eb2a0c2d475964d92019898fd3a8d2ee6
push id396
push userclokep@gmail.com
push dateMon, 06 Jan 2020 23:11:57 +0000
reviewersmkmelin
bugs1504455
Bug 1504455 - when creating a new row in the addressing widget, don't switch back to To: (analysis by :mkmelin). r=mkmelin
mail/components/compose/content/addressingWidgetOverlay.js
--- a/mail/components/compose/content/addressingWidgetOverlay.js
+++ b/mail/components/compose/content/addressingWidgetOverlay.js
@@ -433,17 +433,17 @@ function awAddRecipientsArray(aRecipient
     awGetInputElement(top.MAX_RECIPIENTS).value != ""
   ) {
     // Insert empty row at the end and focus.
     awAppendNewRow(true);
     awSetInputAndPopupValue(
       awGetInputElement(top.MAX_RECIPIENTS),
       "",
       awGetPopupElement(top.MAX_RECIPIENTS),
-      "addr_to",
+      aRecipientType,
       top.MAX_RECIPIENTS,
       false
     );
   } else {
     // Focus the next empty row, if any, or the pre-existing empty last row.
     row = emptyRows.length > 0 ? emptyRows.shift() : top.MAX_RECIPIENTS;
     awSetFocusTo(awGetInputElement(row));
   }