question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding suffix to numeric masque causing cursor to jump before

See original GitHub issue

I extended numeric mask by adding a suffix and it causes the cursor to jump before when a space is added : inputmask-bug

You can see here that at 4 the cursor goes back and messes up the number.

What I want : 1 234 567 890

what I get : 1 245 678 904

This is my extend

Inputmask.extendAliases({
  'numeric-fr': {
    alias: "numeric",
    suffix: "$"
  }
});

You can test it here for yourself http://codepen.io/stephendesjardins/pen/mRQwev

Using version : 3.3.5-33

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RobinHerbotscommented, Mar 20, 2017

It makes the Mask behave like on Android. So I need to fix this. But the option is a dev option.

0reactions
stevenbriscoecacommented, Mar 22, 2017

Amazing, your dedication to this project is inspiring! thank you so much!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong cursor placement with numeric mask and suffix - GitLab
When using numeric extensions with alias: numeric and suffix option, cursor gets placed in the wrong position on subsequent input focusing.
Read more >
Place cursor at the end of text in EditText - java - Stack Overflow
Try this: UPDATE: Kotlin: editText.setSelection(editText.length())//placing cursor at the end of the text. Java: editText.
Read more >
IBM Informix Messages and Corrections
Its filename would begin with the first few letters of table-name, followed by a 3-digit number and the suffix .dat, or .idx. With...
Read more >
Form Input | Components - BootstrapVue
Create various type inputs such as: text, password, number, url, email, ... v-model modifiers .number and .trim can cause unexpected cursor jumps when...
Read more >
Customizing Fields on Record Forms
A keyboard accelerator can be added to a field by placing a “&” before the letter in the Screen Label. For example, "&Location"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found