Stopped inactive properties from showing computed inline fields, since they are not recomputed while inactive
This commit is contained in:
@@ -22,10 +22,12 @@ export default {
|
||||
return [];
|
||||
},
|
||||
},
|
||||
inactive: Boolean,
|
||||
},
|
||||
computed: {
|
||||
computedValue(){
|
||||
if (!this.string) return '';
|
||||
if (this.inactive) return this.string;
|
||||
let index = 0;
|
||||
return this.string.replace(/\{([^{}]*)\}/g, () => {
|
||||
let comp = this.calculations && this.calculations[index++];
|
||||
|
||||
Reference in New Issue
Block a user