var sw = this.selectedChildWidget; var lastStep = sw.isLastChild; this.nextButton.setAttribute("disabled", lastStep); this._setButtonClass(this.nextButton); if(sw.doneFunction){ this.doneButton.domNode.style.display = ""; if(lastStep){ this.nextButton.domNode.style.display = "none"; } }else{ // #1438 issue here. this.doneButton.domNode.style.display = "none"; } this.previousButton.setAttribute("disabled", !this.selectedChildWidget.canGoBack); this._setButtonClass(this.previousButton);