diff --git a/components/progress-bar/progress-bar.js b/components/progress-bar/progress-bar.js index 09e82ebd798b38cceca3ec6c34474c89d47a74f0..064467feb55e6d83b88d94215ac91b7b1f3abca5 100644 --- a/components/progress-bar/progress-bar.js +++ b/components/progress-bar/progress-bar.js @@ -148,7 +148,13 @@ return new Promise(async (resolve, reject) => { - await this.#transitionOut(); + this.#setInactive(); + + await new Promise((resolve, reject) => { + + window.setTimeout(resolve, this.#transitionDuration * 1.5); + + }); this.uninstall(); this.#visible = false; @@ -182,24 +188,6 @@ } - /** - * Transition the progress bar out. - * - * @return {Promise} - * A Promise that resolves when the transition is considered complete. - */ - #transitionOut() { - - this.#setInactive(); - - return new Promise((resolve, reject) => { - - window.setTimeout(resolve, this.#transitionDuration * 1.5); - - }); - - } - /** * Explicitly set the progress bar to a value. *