Skip to content

Commit 956400e

Browse files
author
Dipak Sarkar
committed
updated cursor position after add deciaml
1 parent 4806607 commit 956400e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
e.preventDefault()
3333
el.setRangeText(config.decimal)
3434
el.dispatchEvent(new Event('input'))
35-
core.updateCursor(el, el.value.length - config.precision - config.suffix.length)
35+
core.updateCursor(el, el.value.indexOf(config.decimal) + 1)
3636
}
3737
}
3838

0 commit comments

Comments
 (0)