RobinHerbots/Inputmask

Datetime mask `dd.mm.yyyy` issue replacing day field

Closed this issue · 5 comments

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,
 }
  1. Click into datePicker input field
  2. Put the cursor at the beginning of the field
  3. Type "12" to try and set the day to 12
  4. 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)