Skip to content

Commit

Permalink
fix(input): 选择文件出错
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Jan 8, 2019
1 parent 2aaf6d7 commit 28273d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-components/src/components/input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Input extends Nerv.Component {
value: { value }
})
// 修复 IOS 光标跳转问题
if (inputType !== 'number') {
if (!['number', 'file'].includes(inputType)) {
const pos = e.target.selectionEnd
setTimeout(
() => {
Expand Down

0 comments on commit 28273d7

Please sign in to comment.