Skip to content

Commit

Permalink
fix(checkbox): missing item parameter when triggering parent componen…
Browse files Browse the repository at this point in the history
…t update
  • Loading branch information
betavs committed Sep 23, 2024
1 parent 673dee2 commit 6771198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class CheckBox extends SuperComponent {
const parent = this.$parent;

if (parent) {
parent.updateValue({ ...this.data, checked });
parent.updateValue({ ...this.data, checked, item: { label, value, checked } });
} else {
this._trigger('change', { context: { value, label }, checked });
}
Expand Down

0 comments on commit 6771198

Please sign in to comment.