primereact icon indicating copy to clipboard operation
primereact copied to clipboard

InputNumber: RTL support

Open augustosnk12 opened this issue 3 years ago • 3 comments

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!

augustosnk12 avatar Aug 31 '21 02:08 augustosnk12

I need this !

PedroSouza157998 avatar Aug 31 '21 19:08 PedroSouza157998

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?

mertsincan avatar Nov 06 '21 22:11 mertsincan

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.

augustosnk12 avatar Nov 27 '21 14:11 augustosnk12