Skip to content

Commit

Permalink
fix(input ): 修复自动聚焦时默认光标位置在最左侧 (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjherlang authored Jan 9, 2025
1 parent fa60cbb commit 255c067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nutui/components/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const inputProps = {
/**
* @description 指定focus时的光标位置
*/
cursor: Number,
cursor: makeNumberProp(-1),
/**
* @description 光标起始位置,自动聚集时有效,需与selection-end搭配使用
*/
Expand Down

0 comments on commit 255c067

Please sign in to comment.