Skip to content

Commit

Permalink
fix(picker): enable to using falsy value (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJim committed Apr 29, 2023
1 parent c977ec5 commit 049edc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picker/picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class Picker extends SuperComponent {

this.$children.forEach((child, index) => {
child.setData({
value: value?.[index] || '',
value: value?.[index] ?? '',
});
child.update();
});
Expand Down

0 comments on commit 049edc7

Please sign in to comment.