primefaces-extensions / primefaces-extensions.github.com

Organization repo, only for homepage, wiki and issue tracker
https://primefaces-extensions.github.io/
70 stars 22 forks source link

Calculator: RTL or right align digits are not displayed on main text #806

Closed arunvc closed 4 years ago

arunvc commented 4 years ago

Describe the bug RTL or right align digits are not displayed on main textbox

image

Environment: Showcase https://www.primefaces.org/showcase-ext/sections/calculator/localization.jsf

To Reproduce Steps to reproduce the behavior:

  1. Go to https://www.primefaces.org/showcase-ext/sections/calculator/localization.jsf
  2. Click on RTL
  3. Type 12345
melloware commented 4 years ago

Also can't reproduce: image

Did you click the "Utiliser" button to use the number?

arunvc commented 4 years ago

See the typed text is not visible in the textbox where i am typing, it appears only on the calc popup, Where as when its left aligned i can see my typed text on both textboxes

check this video sample.zip

melloware commented 4 years ago

This one works for me the same in RTL as LTR. AS I am typing it only ever enters the main input text when I press the "use" button on the calculator.

Your video is exactly what mine is doing in RTL or LTR?

melloware commented 4 years ago

If you want it to accept your typing use "InputNumber" instead of "InputText" like in the basic example.

melloware commented 4 years ago

OK this is fixed in 8.0.3 with commit: https://github.com/primefaces-extensions/core/commit/2ef725d15509690683b47611a340d3d2fa75c005

this makes InputNumber and InputText behave the same. You have to use "Use" button before the value is displayed on the main input.