Commit 07d9c40a authored by Betterbird's avatar Betterbird
Browse files

Bug 1856189 - Use selectedIndex setter on wizard. a=dsmith

Setting the "selectedIndex" attribute doesn't trigger all the relevant
side effects. It's also simpler.

Differential Revision: https://phabricator.services.mozilla.com/D189766
parent 2d86ee63
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -619,9 +619,9 @@
          this.getAttribute("lastpage") == "true"
        );
      } else if (this.getAttribute("lastpage") == "true") {
        this._wizardButtonDeck.setAttribute("selectedIndex", 0);
        this._wizardButtonDeck.selectedIndex = 0;
      } else {
        this._wizardButtonDeck.setAttribute("selectedIndex", 1);
        this._wizardButtonDeck.selectedIndex = 1;
      }
    }