primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.66k stars 1.01k forks source link

InputNumber: RTL support #2263

Open augustosnk12 opened 3 years ago

augustosnk12 commented 3 years ago

Hi, I didn't see anything on the documentation about reversing the order of the component to start filling from right to left, so I'm leaving it here: In some countries, like Brazil, currency is typically filled from right to left, so is there a way to accomplish this or it would be a new feature? Thanks!

PedroSouza157998 commented 3 years ago

I need this !

mertsincan commented 2 years ago

Hi,

For Brazil locale, I'm not sure what the correct behavior of inputNumber should be. An example would be good for me to implement it. Note: InputNumber component uses Intl.NumberFormat API; https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat

Is this related to the initial cursor position?

augustosnk12 commented 2 years ago

Hello there! Thanks for the answer and sorry for the delay 😅. I have here some working sample using another lib. Try the Money input to see the behavior we usually expect. This other lib also uses Intl.NumberFormat.