Bug 1555608 - make toolbarbutton-menu-button work with setting the hidden attribute. r=khushil
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 30 May 2019 10:57:26 +0300
changeset 35724 6b95c43c6c89432cfdcecc54e707e53f7b1bba03
parent 35723 78f7fd722424f609709ff3bd2eba6f0fbcd47b27
child 35725 4057acd16bb983361eca4d7876c5e6cd666c9aed
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewerskhushil
bugs1555608
Bug 1555608 - make toolbarbutton-menu-button work with setting the hidden attribute. r=khushil
mail/base/content/toolbarbutton-menu-button.js
--- a/mail/base/content/toolbarbutton-menu-button.js
+++ b/mail/base/content/toolbarbutton-menu-button.js
@@ -16,17 +16,17 @@
    * like a normal toolbarbutton.
    *
    * @extends MozToolbarbutton
    */
   class MozToolbarButtonMenuButton extends customElements.get("toolbarbutton") {
     static get inheritedAttributes() {
       return {
         ...super.inheritedAttributes,
-        ".toolbarbutton-menubutton-button": "disabled",
+        ".toolbarbutton-menubutton-button": "hidden,disabled",
         ".toolbarbutton-menubutton-dropmarker": "open,disabled",
       };
     }
     static get menubuttonFragment() {
       let frag = document.importNode(MozXULElement.parseXULToFragment(`
         <toolbarbutton class="box-inherit toolbarbutton-menubutton-button" flex="1" allowevents="true"></toolbarbutton>
         <dropmarker type="menu-button" class="toolbarbutton-menubutton-dropmarker"></dropmarker>
       `), true);