Skip to content

Commit

Permalink
fixed: when set defaultIndex, the defaultValue is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Galen committed Feb 4, 2017
1 parent 7a8ce4c commit db1b6b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/picker/src/picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@
this.values = [];
var values = this.values;
var valueIndexCount = 0;
slots.forEach(function(slot) {
slots.forEach(slot => {
if (!slot.divider) {
slot.valueIndex = valueIndexCount++;
values[slot.valueIndex] = (slot.values || [])[slot.defaultIndex || 0];
this.slotValueChange();
}
});
},
Expand Down

0 comments on commit db1b6b3

Please sign in to comment.