Bug 1640722 - followup to fix linting. rs=eslint DONTBUILD
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Fri, 29 May 2020 15:56:13 +0300
changeset 39278 11e9b6a0ac818ef746c48a3e5fccdd193927054f
parent 39277 aa0ea60ab031095e06721e9dcd08c0cdd2766469
child 39279 cfaf20a2e4288a3c73376e98843864f5cf4776f8
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewerseslint
bugs1640722
Bug 1640722 - followup to fix linting. rs=eslint DONTBUILD
mail/components/compose/content/addressingWidgetOverlay.js
--- a/mail/components/compose/content/addressingWidgetOverlay.js
+++ b/mail/components/compose/content/addressingWidgetOverlay.js
@@ -993,17 +993,19 @@ function hideAddressRow(element, focusTy
   let pills = addressRow.querySelectorAll("mail-address-pill");
   let isEdited = addressRow
     .querySelector(".address-container")
     .classList.contains("addressing-field-edited");
 
   // Ask the user to confirm the removal of all the typed addresses if the field
   // holds addressing pills and has been previously edited.
   if (isEdited && pills.length) {
-    let fieldName = addressRow.querySelector(".address-label-container > label");
+    let fieldName = addressRow.querySelector(
+      ".address-label-container > label"
+    );
     let confirmTitle = getComposeBundle().getFormattedString(
       "confirmRemoveRecipientRowTitle2",
       [fieldName.value]
     );
     let confirmBody = getComposeBundle().getFormattedString(
       "confirmRemoveRecipientRowBody2",
       [fieldName.value]
     );
@@ -1046,32 +1048,29 @@ function hideAddressRow(element, focusTy
 
   // Move focus to the next focusable address input field.
   let addressRowSibling =
     focusType == "next"
       ? getNextSibling(addressRow, ".address-row:not(.hidden)")
       : getPreviousSibling(addressRow, ".address-row:not(.hidden)");
 
   if (addressRowSibling) {
-    addressRowSibling
-      .querySelector(`.address-input[recipienttype]`)
-      .focus();
+    addressRowSibling.querySelector(`.address-input[recipienttype]`).focus();
     return;
   }
   // Otherwise move focus to the subject field or to the first available input.
   let fallbackFocusElement =
     focusType == "next"
       ? document.getElementById("msgSubject")
       : getNextSibling(addressRow, ".address-row:not(.hidden)").querySelector(
           ".address-input[recipienttype]"
         );
   fallbackFocusElement.focus();
 }
 
-
 /**
  * Handle the click event on the close label of an address row.
  *
  * @param {Event} event - The DOM click event.
  */
 function closeLabelOnClick(event) {
   hideAddressRow(event.target);
 }