Skip to content

Commit 4cae729

Browse files
authored
fix(QInput): useMask wrongly consumes character when it's part of the actual mask.
1 parent 86f31f6 commit 4cae729

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

ui/src/components/input/use-mask.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ export default function (props, emit, emitValue, inputRef) {
499499

500500
if (typeof maskDef === 'string') {
501501
output += maskDef
502-
valChar === maskDef && valIndex++
503502
}
504503
else if (valChar !== void 0 && maskDef.regex.test(valChar)) {
505504
output += maskDef.transform !== void 0
@@ -529,7 +528,6 @@ export default function (props, emit, emitValue, inputRef) {
529528

530529
if (typeof maskDef === 'string') {
531530
output = maskDef + output
532-
valChar === maskDef && valIndex--
533531
}
534532
else if (valChar !== void 0 && maskDef.regex.test(valChar)) {
535533
do {

0 commit comments

Comments
 (0)