Skip to content

Commit

Permalink
Fixed issue with invalid controlled property asignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleysin committed Jan 10, 2024
1 parent 85c1296 commit 17e84b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "duit_js",
"version": "2.0.0",
"version": "2.0.1",
"description": "JavaScript adapter for Duit Framework - drived UI toolkit for Flutter",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/widget_models/child.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class DuitLeafElement {
protected action: Nullable<BaseAction>;

constructor(id?: string, action?: Nullable<BaseAction>, controlled?: boolean) {
this.controlled = controlled ?? action !== undefined ?? false;
this.controlled = controlled ?? false;
this.action = action;
if (id) {
this.id = id;
Expand Down

0 comments on commit 17e84b6

Please sign in to comment.