svelte-currency-input
svelte-currency-input copied to clipboard
A masked form input that converts numbers to localized currency formats as you type
In the right conditions, when the page is loaded you can see the value unformatted for a _split second_.
Reverted from `4.x` to `3.x` in https://github.com/fmaclen/svelte-currency-input/pull/70 Making this change means that we can no longer support types in Svelte `3.x` which would be a breaking change.
- Maybe should override the symbol set by `Int.NumberFormat` - e.g. `₳`, `Ξ`, `💎` - Update REPL with example
- It'd be nice if it's auto-generated from the Svelte version and we could run the existing test suite against it. - Might be as easy as abstracting the functions...
Including (but not limited to): - [x] #21 - [x] #23 - [ ] #25 - [x] #26 - [ ] #28 - [ ] Add custom attributes (e.g. `data-test-id`),...
https://github.com/fmaclen/svelte-currency-input/assets/1434675/de131586-9c31-41c5-8a29-a0eae8556691
REF https://github.com/Canutin/svelte-currency-input/issues/39 https://user-images.githubusercontent.com/1434675/196008624-105d610c-9efc-4dc4-a428-0a8dff6c7931.mp4
REF: https://github.com/Canutin/svelte-currency-input/blob/main/tests/svelte-currency-input.test.ts#L123-L129
I am having an issue and I can't figure out what is causing the cursor to jump to the end of text input. If you just try your demo -$42,069.33...