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

AutoNumeric - RTL (right-to-left script) #694

Open
jarciano opened this issue Jul 15, 2020 · 3 comments
Open

AutoNumeric - RTL (right-to-left script) #694

jarciano opened this issue Jul 15, 2020 · 3 comments

Comments

@jarciano
Copy link

Current behavior

The user has to delete the zeros "R$ 0,00" and after that type 1,23 manually inserted the comma "," to have the "R$ 1,23" because if you type 123 automatically it becomes "R$ 123,00"

Another detail if positioning the cursor on the right simply does nothing when trying to type any number "R$ 0,00|"

Expected behavior

I need to format it with monetary value where the user enters the numbers from right to left "RTL" (right-to-left script).

Example: the cursor starts at the end of the numbers "R$ 0,00|" and when you enter the value "123" it moves from right to left "R$ 1,23"

Steps to reproduce the problem

  1. Use autoNumeric version 4.6.0 (Primefaces InputNumber uses AutoNumeric under the covers)
  2. In the browser Chrome: 84 | Firefox: 78
  3. On the Linux and Windows operating system

Link to live example (https://www.dropbox.com/s/dr2g38rq7hl9g6i/inputNumber.mp4?dl=0)

Watch this example video from another application, the cursor starts at the end of the numbers R$ 0,00| and when entering the value 123 it moves from right to left R$ 1,23

Detail

I am opening this issue after trying a solution in the Primefaces Forum @melloware told me to try this feature with you.

https://forum.primefaces.org/viewtopic.php?p=183472#p183472

Thanks attention, and congratulations on the work

@jarciano
Copy link
Author

Hello,
@AlexandreBonneau i imagine it is full of work, but any good news about my request for improvement?

1 similar comment
@jarciano
Copy link
Author

Hello,
@AlexandreBonneau i imagine it is full of work, but any good news about my request for improvement?

@jarciano
Copy link
Author

Hello,

It's been a few years and I haven't seen any news about the subject, @AlexandreBonneau would you have any plans for such a function?

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

No branches or pull requests

2 participants