x-mask money plugin does not allow for negative values #3324
benkoshy
started this conversation in
3. Feature Ideas
Replies: 1 comment 7 replies
-
|
The tests run in cypress. I'm not sure if the jest ones are still in use. |
Beta Was this translation helpful? Give feedback.
7 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes it's useful to model amounts in negative values.
This is especially useful in modelling losses (as opposed to profits):
-10,000.Currently this cannot be done: https://alpinejs.dev/plugins/mask#money-inputs - try here inputting a negative value.
I tried cloning the repository and running tests to make a PR for this, but the test seem to fail against the main branch?
https://github.com/alpinejs/alpine/tree/5ede2501b70533f067796992c8d379d2ddd07af9
Beta Was this translation helpful? Give feedback.
All reactions