Skip to content

Commit

Permalink
fix(components): picker 单列选择更新下标问题 (close #2797)
Browse files Browse the repository at this point in the history
jinjinjin0731 authored Apr 17, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 52703ac commit 36d3b0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-components/src/components/picker/index.js
Original file line number Diff line number Diff line change
@@ -104,6 +104,7 @@ export default class Picker extends Nerv.Component {
range = []
this.props.range = []
}
if (this.index.length >= 1) this.index = []
this.index.push(this.verifyValue(value, range) ? Math.floor(value) : 0)
}
}

0 comments on commit 36d3b0f

Please sign in to comment.