diff options
-rw-r--r-- | src/mixins/PropertyMixin.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mixins/PropertyMixin.js b/src/mixins/PropertyMixin.js index 50070be2..73b3f21c 100644 --- a/src/mixins/PropertyMixin.js +++ b/src/mixins/PropertyMixin.js @@ -76,6 +76,19 @@ export default { } }, + watch: { + /** + * Since we're updating a local data based on the value prop, + * we need to make sure to update the local data on pop change + */ + value: function() { + this.localValue = this.value + }, + selectType: function() { + this.localType = this.selectType + } + }, + methods: { /** * Delete the property |