forked from mirrors/akkoma-fe
post_status_form: enable sync flush for watcher
This fixes drafts not clearing after posting a reply. Vue 3.3.11 changed watchers to stop firing after component unmount. After posting a reply, the post form is removed, now causing the queued event to be discarded. Synchronous flush causes the handler to be called immediately when changes happen, solving the problem. See: https://github.com/vuejs/core/pull/7181 See:80e2128d52Fixes:a7dea2f70fFixes: #413
This commit is contained in:
parent
2c8b20f700
commit
cfc13b767b
1 changed files with 1 additions and 0 deletions
|
|
@ -329,6 +329,7 @@ const PostStatusForm = {
|
||||||
watch: {
|
watch: {
|
||||||
'newStatus': {
|
'newStatus': {
|
||||||
deep: true,
|
deep: true,
|
||||||
|
flush: 'sync',
|
||||||
handler () {
|
handler () {
|
||||||
this.statusChanged()
|
this.statusChanged()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue