diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-28 00:14:21 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-28 00:14:21 -0400 |
commit | 94a25934babbd7ef1fac803ef059a02be3e36e49 (patch) | |
tree | 3ae170cd5065f8b9f7d2b7516e22bd7929fda9f3 /src | |
parent | 13f1952137b27480a12fa4a20a4cfc49f823ebf8 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/DashFieldView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/DashFieldView.tsx b/src/client/util/DashFieldView.tsx index d76e9d1ec..cf09e0132 100644 --- a/src/client/util/DashFieldView.tsx +++ b/src/client/util/DashFieldView.tsx @@ -89,11 +89,11 @@ export class DashFieldViewInternal extends React.Component<IDashFieldViewInterna const boolVal = Cast(fval, "boolean", null); const strVal = Field.toString(fval as Field) || ""; - // field value is a boolean, so use a checkbox of similar widget to display it + // field value is a boolean, so use a checkbox or similar widget to display it if (boolVal === true || boolVal === false) { return <input className="dashFieldView-fieldCheck" - type="checkbox" + type="checkbox" checked={boolVal} onChange={e => this._dashDoc![this._fieldKey] = e.target.checked} />; } |