Skip to content
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

NumericFormat suffix is not allowing antdesign input to handle suffix #822

Open
1 of 6 tasks
jsparraw783 opened this issue Feb 5, 2024 · 1 comment
Open
1 of 6 tasks

Comments

@jsparraw783
Copy link

jsparraw783 commented Feb 5, 2024

Describe the issue and the actual behavior

on NumericFormat component custom input of antdesign suffix are not working as they are ReactNode type and not string

Describe the expected behavior

Antd Input is expected to provide a span with the suffix but instead NumericFormat has a prop type of a string and handles suffix and prefix differently

Provide a CodeSandbox link illustrating the issue

Provide steps to reproduce this issue

on NumericFormat provide a custom input of antd and try to pass suffix with it and it will not work,
please note that providing and addOnAfter goes back to the basic commonInputProps types which is ReactNode
but with suffix it does not work

Please check the browsers where the issue is seen

  • Chrome
  • Chrome (Android)
  • Safari (OSX)
  • Safari (iOS)
  • Firefox
  • Firefox (Android)
@s-yadav
Copy link
Owner

s-yadav commented Feb 25, 2024

@jsparraw783 please provide codesanbox link so it's easy to check what issue you are facing. Looks like some custom use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants