diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-05-23 14:59:01 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-05-23 14:59:01 -0400 |
| commit | 43818b137486f3d4431e1c3b9f4de0b0aefba9ca (patch) | |
| tree | b9ab286dbf7bfe978bccf531885c1c8ad4e2041d /src/fields/util.ts | |
| parent | 28b8ac619b8dacac1013852fe9e3d1e83724ab2e (diff) | |
several fixes to progressivization and added UI for editing by suspending transparency
Diffstat (limited to 'src/fields/util.ts')
| -rw-r--r-- | src/fields/util.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index a287b0210..024c0f80e 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -116,7 +116,7 @@ export function setter(target: any, in_prop: string | symbol | number, value: an return true; } } - if (target.__fields[prop] instanceof ComputedField && target.__fields[prop].setterscript) { + if (target.__fields[prop] instanceof ComputedField && target.__fields[prop].setterscript && value !== undefined && !(value instanceof ComputedField)) { return ScriptCast(target.__fields[prop])?.setterscript?.run({ self: target[SelfProxy], this: target[SelfProxy], value }).success ? true : false; } return _setter(target, prop, value, receiver); |
