[Vuejs]-Quasar Framework – how to reset q-uploader in submit form

0👍

understood – what’s the matter

q-uploader has

: disable = "count! = 0"

I previously send a request and, accordingly, disable – by assigning count = 1 (it’s a little more complicated there – the number is used and not just a boolean value – not the point)

after successful request

count.value = 0

and, accordingly, uploader.value.reset () – however, the q-uploader does not have time to unload and, accordingly, is not cleared

set a timeout

setTimeout (() => {uploader.value.reset ()}, 100)

but you don’t like the solution – can someone suggest a more beautiful solution? any wait when q-uploader became available?

Leave a comment