Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
use force update to enforce component update
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Apr 24, 2019
1 parent 797ef66 commit 93eb1de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/LineUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ export default class LineUp extends Vue implements IBuilderAdapterProps {
// watch all properties
const props = Object.keys((this as any)._props) as Array<keyof IBuilderAdapterProps>;
for (const prop of props) {
this.$watch(prop, () => this.changed.add(prop));
this.$watch(prop, () => {
this.changed.add(prop);
this.$forceUpdate(); // force an update since we just have a dummy template
});
}
}
Expand Down

0 comments on commit 93eb1de

Please sign in to comment.