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
Awaits value updates to provide a smooth update for child control components

fixes #502
  • Loading branch information
2xAA committed Dec 11, 2020
1 parent ce2d6b5 commit 54ac4ad
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 54ac4ad

Please sign in to comment.