Skip to content

Commit

Permalink
fix(control.vue): clears queued values and waits for values to update (
Browse files Browse the repository at this point in the history
…#503)

Awaits value updates to provide a smooth update for child control components

fixes #502
  • Loading branch information
2xAA authored Dec 15, 2020
1 parent 4bb8255 commit 1cad5de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,17 @@ export default {
},
methods: {
queueLoop() {
this.dirty = false;
async queueLoop() {
const { id, prop, queued } = this;
this.$modV.store.dispatch("modules/updateProp", {
await this.$modV.store.dispatch("modules/updateProp", {
moduleId: id,
prop,
data: queued
});
this.queued = null;
this.dirty = false;
},
focusInput() {
Expand Down

0 comments on commit 1cad5de

Please sign in to comment.