This commit is contained in:
2024-07-02 08:53:18 +02:00
parent 883dd6da91
commit 0951c2a4ea
2 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "magico-pagebuilder", "name": "magico-pagebuilder",
"version": "0.0.13", "version": "0.0.14",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -186,7 +186,7 @@ export default {
modalSave: false, modalSave: false,
modalLoad: false, modalLoad: false,
descriptionAllegro: false, descriptionAllegro: false,
ownUpdate: false ownUpdate:false,
} }
}, },
props: ['name', 'modelValue', 'showcopy', 'lang'], props: ['name', 'modelValue', 'showcopy', 'lang'],
@@ -220,9 +220,9 @@ export default {
console.log('nq', newQuestion) console.log('nq', newQuestion)
}, },
modelValue: function () { modelValue: function () {
if (this.ownUpdate) { if(this.ownUpdate){
this.ownUpdate = false this.ownUpdate=false;
return return;
} }
try { try {
this.comps = JSON.parse(trimmed) this.comps = JSON.parse(trimmed)
@@ -240,7 +240,7 @@ export default {
}, },
methods: { methods: {
onChange: function () { onChange: function () {
this.ownUpdate = true this.ownUpdate=true;
this.$emit('update:modelValue', JSON.stringify(this.comps)) this.$emit('update:modelValue', JSON.stringify(this.comps))
this.$emit('change') this.$emit('change')
}, },