Trying to make mask for positive and negative numbers only #15614
Unanswered
sakon54321
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm trying to create a component that will just allow a user to enter either a positive or negative number. Here's what I've done. It only seems to work if I remove the mask altogether but then user can enter alpha or anything else. When I just use a # mask or even a [-]# mask it resets the number to a positive immediately. Not sure what I'm doing wrong. Is there any documentation on the masks it seems like the options provided in the docs are limited to just a few things.
Beta Was this translation helpful? Give feedback.
All reactions