Hello, I am working on the calculator project using React
I am using the window calculator as sample. On window calculator, numbers, symbols, and operators input from right to left. I want to do the same thing using the “direction: rtl” to make the same thing. However, I am countering a bug when inputting symbols or operators, they are inputting from left to right while numbers are from right to left.
If you input some numbers
then input any operators or symbols,
it would display on the left side
then input a number again would display the operator or symbols on the right side again
First, I input some numbers 12345
then, I input a decimal
then I input a number again
Using “direction: ltr” doesn’t has the problem
I try to do it in another way, I consider to work on left to right, however, because it is “overflow: hidden”
it would hide the numbers. Is it possible to move the text to the latest input position ?