You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type two numbers, cursor will appear after the forward slash 11/|__
Press Backspace, the cursor moves to 11|/__
Type a number
Expected behavior:
The character typed appears after the /.
Actual behavior:
The cursor moves after the / but the key press is consumed and never appears.
This could be related to the fact that Backspace should consume the 11 and not move the cursor (it's trying to remove the constant). It could be a bug with the mask library and not our code, we should verify and try to resolve.
The text was updated successfully, but these errors were encountered:
mask library documentation: https://github.com/insin/inputmask-core
it looks like we're using mask.backspace, and that seems to be intended behavior for mask.backspace - see the quote below.
backspace() : boolean
Performs a backspace operation based on the current selection.
If the cursor is positioned after a static part of the mask, the cursor will be placed before it.
Steps to reproduce:
mask="11/11"
Expected behavior:
The character typed appears after the /.
Actual behavior:
The cursor moves after the / but the key press is consumed and never appears.
This could be related to the fact that Backspace should consume the 11 and not move the cursor (it's trying to remove the constant). It could be a bug with the mask library and not our code, we should verify and try to resolve.
The text was updated successfully, but these errors were encountered: