Skip to content

Commit 3b9df21

Browse files
committed
fix the issue of no update on decimal key down
1 parent 8d0a095 commit 3b9df21

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
@@ -42,7 +42,7 @@ export default {
4242
) {
4343
e.preventDefault()
4444
el.setRangeText(config.decimal)
45-
el.dispatchEvent(new Event('input'))
45+
core.updateValue(el, null, { emit: true }, e)
4646
core.updateCursor(el, el.value.indexOf(config.decimal) + 1)
4747
} else if (
4848
([110, 190].includes(e.keyCode) || e.key === config.decimal) &&

0 commit comments

Comments
 (0)