Skip to content

Commit

Permalink
Merge pull request #612 from Tencent/fix/picker/label
Browse files Browse the repository at this point in the history
fix(picker): return correct label
  • Loading branch information
LeeJim authored Jul 15, 2022
2 parents 60e0ecd + 6d7086d commit f768d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picker/picker-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class PickerItem extends SuperComponent {
wx.nextTick(() => {
this._selectedIndex = index;
this._selectedValue = options[index]?.value;

this._selectedLabel = options[index]?.label;
this.parent?.triggerColumnChange({
index,
column: this.columnIndex || 0,
Expand Down

0 comments on commit f768d1d

Please sign in to comment.