question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weired suffix behaviour

See original GitHub issue

My customer wants to add a label as suffix to input (large enterprise project, so no code example). I know the suffix prop is not actually made for this and I use it together with intl prop. The outcome on the first glance is quite good. image Writing 30 ends up in image So groups get added, and the intl configuration is not overwritten like the documentation states.

<CurrencyInput
                id={label.replace(" ", "").toLowerCase()}
                name={label.replace(" ", "").toLowerCase()}
                placeholder={label}
                intlConfig={{ locale, currency }}
                {...{ type }}
                onValueChange={handleChange}
                key={`input-${label}`}
                className={handles.financeCalculatorInput}
                suffix={" " + label}
            />

I am not doing a change request here, because this scenario is quite rare. Just pointing out weired behaviour here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
ColinBohncommented, Dec 14, 2021

Just saw this same behavior, seems to be an issue with having the character “m” included in the suffix as by default this is assumed to be an abbreviation for “million”. Passing thedisableAbbreviations prop will fix the issue.

1reaction
muh-hizbecommented, Feb 15, 2022

Just saw this same behavior, seems to be an issue with having the character “m” included in the suffix as by default this is assumed to be an abbreviation for “million”. Passing thedisableAbbreviations prop will fix the issue.

nice, this way was fixed my problem with suffix. Thank’s @ColinBohn

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nslookup suffixing behavior – Ace Fekay - Msmvps
If not, it will append the current context, that is the suffix(es) configured on the machine, which it will suffix each one in...
Read more >
Strange URL Suffix behavior | General Discussion
I have an htaccess file in place that gets rid of the need for “index.php” in the URL. All is working great…...except for...
Read more >
Windows DNS weird behaviour - Microsoft Q&A
Having a particularly odd issue with AD DNS where the Domain Controllers are resolving NETBIOS names and appending the wrong domain name.
Read more >
Odd Suffix Behavior - Team Drives - Help and Support
I'm using a backup folder for changed files, along with --suffix to rename and keep revisions. I suspect this is something on google...
Read more >
Angular Material: Weird suffix fucntionality - Stack Overflow
I am using angular material's form field component to create my forms... I noticed that if I use a button inside the mat...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found