Explorar el Código

fix: remove Object.seal to options

Object.seal changes the original object and prevents the options to be
observable.
Gerald hace 5 años
padre
commit
9402cbaf27
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/common/ui/setting-text.vue

+ 1 - 1
src/common/ui/setting-text.vue

@@ -77,7 +77,7 @@ export default {
       // XXX compatible with old data format
       : (value => (Array.isArray(value) ? value.join('\n') : value || ''));
     this.revoke = hookSetting(this.name, val => {
-      this.savedValue = Object.seal(val);
+      this.savedValue = val;
       this.value = handle(val);
     });
     this.defaultValue = objectGet(defaults, this.name);