Skip to content

Commit bf5ba17

Browse files
committed
updated
1 parent c06a626 commit bf5ba17

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/directive.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ export default {
3737
// updated cursor position after format the value
3838
el.onkeydown = (e) => {
3939
if (
40-
([110, 190].includes(e.keyCode) || e.key === config.decimal) &&
41-
!el.value.includes(config.decimal)
42-
) {
43-
e.preventDefault()
44-
el.setRangeText(config.decimal)
45-
core.updateValue(el, null, { emit: true }, e)
46-
core.updateCursor(el, el.value.indexOf(config.decimal) + 1)
47-
} else if (
4840
([110, 190].includes(e.keyCode) || e.key === config.decimal) &&
4941
el.value.includes(config.decimal)
5042
) {

vue-v3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit c06a626fefa70c2dd4d3be39436bcfa743b41a8a

0 commit comments

Comments
 (0)