mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Adding conditional styles to old style widgets
Summary: Widgets that were using old base Widget class didn't not create conditional style rules ui. Additional fixed a little bug - when adding conditional rule the formula field was marked as having error for a split second. Test Plan: new test Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3346
This commit is contained in:
@@ -105,10 +105,10 @@ export class CellStyle extends Disposable {
|
||||
const currentValue = Computed.create(owner, use => {
|
||||
const record = use(this.currentRecord);
|
||||
if (!record) {
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
const value = record[use(column.colId)];
|
||||
return value;
|
||||
return value ?? null;
|
||||
});
|
||||
const hasError = Computed.create(owner, use => {
|
||||
return !isValidRuleValue(use(currentValue));
|
||||
|
||||
Reference in New Issue
Block a user