Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Oct 5, 2024
1 parent 269d34b commit 21ad50e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/project-editor/lvgl/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3097,23 +3097,26 @@ export class LVGLActionComponent extends ActionComponent {
break;
case "hidden":
actionJs.action = "objSetFlagHidden";
actionJs.hidden = actionJs.value;
actionJs.hidden =
actionJs.value ?? false;
delete actionJs.value;
actionJs.hiddenType =
actionJs.valueType;
delete actionJs.valueType;
break;
case "checked":
actionJs.action = "objSetStateChecked";
actionJs.checked = actionJs.value;
actionJs.checked =
actionJs.value ?? false;
delete actionJs.value;
actionJs.checkedType =
actionJs.valueType;
delete actionJs.valueType;
break;
case "disabled":
actionJs.action = "objSetStateDisabled";
actionJs.disabled = actionJs.value;
actionJs.disabled =
actionJs.value ?? false;
delete actionJs.value;
actionJs.disabledType =
actionJs.valueType;
Expand Down

0 comments on commit 21ad50e

Please sign in to comment.