Skip to content

Pass an empty string to "prefix" to override Intl Locale config and not display currency code #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jvzaniolo opened this issue Jan 17, 2022 · 3 comments · May be fixed by #391
Closed
Labels
wontfix This will not be worked on

Comments

@jvzaniolo
Copy link

jvzaniolo commented Jan 17, 2022

Describe the feature
I would like to pass an empty string to "prefix" to override Intl Locale config and not display currency code

To Reproduce

<ReactCurrencyInputField
    prefix=""
    intlConfig={{ locale: 'en-US', currency: 'USD' }}
/>

Expected behavior
When typing "1234.56" input field could format to "1,234.56" instead of "$1,234.56"

@stale
Copy link

stale bot commented Mar 19, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 19, 2022
@stale stale bot closed this as completed Mar 26, 2022
@felixfbecker
Copy link

Having the same issue, the problem is that the code uses || to default to the intl config and not ??:

prefix: prefix || localeConfig.prefix,

@Betree
Copy link

Betree commented Feb 11, 2025

Would love to have that too, the workaround I'm using for now is to use a zero-width space (, U+200B, &#8203).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
3 participants