Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Cursor jumps one position right and come back to start position

Open maneeshek opened this issue 1 year ago • 4 comments

  • Describe the bug - Cursor jumps one position right and come back to start position on clicking inside the input field. when place hpolder is set to space(" ")
  • Add a link to a codepen, jsfiddle or other example page which shows the problem
  • OS: Windows
  • Browser - Chrome
  • Inputmask version - 5.0.8 beta.24

maneeshek avatar Mar 21 '24 04:03 maneeshek

@maneeshek ,

Can you first try with the latest beta and provide some more info about the mask and options you use.

RobinHerbots avatar Mar 21 '24 08:03 RobinHerbots

Hi Robin, I updated to the latest version but issue still exists. The place holder value is empty (placeholder:""). When you click/double click inside the text box, the cursor jumps one position right and then returns to previous position. I want the placeholder to be empty also.

maneeshek avatar Apr 24 '24 04:04 maneeshek

@maneeshek ,

Can you provide me mask and options used?

RobinHerbots avatar Apr 24 '24 12:04 RobinHerbots

$("#creditcardnumber").inputmask("9999 9999 9999 999", {"placeholder":"", autoUnmask: true});

maneeshek avatar Apr 25 '24 07:04 maneeshek