RobinHerbots/jquery.inputmask — pull request #531 by ajacome (2014-05-19 21:46:41+00:00)
Title: Update jquery.inputmask.js

The code in mcaret is being executed in Chrome during initialization of inputmask which causes the cursor to be positioned in the input box(every time .inputmask() is called). Positioning the cursor in the input box gives focus to the item and raises the focus event. I was not able to recreate with JSFiddle but was able to do it with a local html file. From what I see there is no reason to set the cursor's position if the item does not have focus. In the code bellow I see the last datepicker being opened and the last input box retaining focus on load.