fix(vue-app): clear hide timeout when calling clear() (#10086)

This commit is contained in:
Arik 2023-01-19 20:51:41 +02:00 committed by GitHub
parent 0b0a85e087
commit 0088d13c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ export default {
clear () { clear () {
clearInterval(this._timer) clearInterval(this._timer)
clearTimeout(this._throttle) clearTimeout(this._throttle)
clearTimeout(this._hide)
this._timer = null this._timer = null
}, },
start () { start () {
@ -79,7 +80,7 @@ export default {
}, },
hide () { hide () {
this.clear() this.clear()
setTimeout(() => { this._hide = setTimeout(() => {
this.show = false this.show = false
this.$nextTick(() => { this.$nextTick(() => {
this.percent = 0 this.percent = 0