Fixed getCaretPosition for input type="Number" on Google Chrome