Datetime mask `dd.mm.yyyy` issue replacing day field
Closed this issue · 5 comments
melloware commented
Original Bug Report at PrimeFaces: primefaces/primefaces#12428
InputMask: 5.0.9 (but still fails with 5.10)
Configuration:
{
alias: "datetime",
autoUnmask: false,
clearIncomplete: false,
clearMaskOnLostFocus: false,
inputFormat: "dd\/mm\/yyyy HH:MM:ss",
placeholder: "_",
showMaskOnHover: false,
}
- Click into datePicker input field
- Put the cursor at the beginning of the field
- Type "12" to try and set the day to 12
- Observe the stack trace
CodePen: https://codepen.io/melloware/pen/zYVddzY
Uncaught RangeError: Maximum call stack size exceeded
at y.h (jquery.inputmask.min.js:8:99582)
at y.p (jquery.inputmask.min.js:8:99052)
at y.f (jquery.inputmask.min.js:8:98414)
at jquery.inputmask.min.js:8:105270
at y.h (jquery.inputmask.min.js:8:105517)
at y.p (jquery.inputmask.min.js:8:99052)
at y.f (jquery.inputmask.min.js:8:98414)
at jquery.inputmask.min.js:8:105270
at y.h (jquery.inputmask.min.js:8:105517)
at y.p (jquery.inputmask.min.js:8:99052)
raphisuter commented
+1
t0mmysenf commented
+1
MarcelNiederer commented
+1
mertsincan commented
+1
RobinHerbots commented
See #2814