Skip to content

Commit

Permalink
DatePicker: Optimize the input, fixed #484
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Oct 20, 2016
1 parent e1fea6d commit 110a5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/date-picker/src/panel/time-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
value(val, old) {
if (val && this.items.filter(i => i.value === val && !i.disabled).length) {
if (val && this.items.some(i => i.value === val && !i.disabled)) {
this.$emit('pick', val, true);
} else {
this.$emit('pick', old, true);
Expand Down

0 comments on commit 110a5db

Please sign in to comment.