Skip to content

Commit

Permalink
feat(input): enable props default-value
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Apr 30, 2024
1 parent a44a1cf commit 12e57ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default class Input extends SuperComponent {

lifetimes = {
ready() {
const { value } = this.properties;
this.updateValue(value ?? '');
const { value, defaultValue } = this.properties;
this.updateValue(value ?? defaultValue ?? '');
},
};

Expand Down

0 comments on commit 12e57ec

Please sign in to comment.