Skip to content

Cursor position on currency mask #2322

@maxc62

Description

@maxc62

Hi,

With inpumask "currency", caret position is frustrating when I click inside input when value is between 1 and 9
Sample:

  • input with value "0.xx", cursor is set at "0|.xx"
  • input with value "xx.xx" cursor is in this state "|xx.xx"
  • but with value "x.xx" the cursor is positioned at the end

If I have 1.5 and i want to change with 12.3 I need to put cursor between 1 and 5

ezgif-7-8e9e076e3700

Sample:
https://jsfiddle.net/s20yLun8/1/

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions