-
Notifications
You must be signed in to change notification settings - Fork 137
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
Number Cell does not support input in an Intl format #397
Comments
@jsilvao I have tested the 2024-05-06.20-35-36.mp4 |
Hi @webloopbox . It's very simple, I'm just doing
It's a 2 column grid, first column is prefilled with some dates, the second column are NumberCells. My browser is in English, but my colleagues' browser are in German, they still cannot type a I came with a hack, I wanted to capture |
Hi @webloopbox , we managed to narrow down how to reproduce the issue. So, if you are in a Google Spreadsheet, and the cells are using non-German format, copying and pasting into the grid will drop the |
@jsilvao In ReactGrid, when the value of a NumberCell is changed, the
I suspect that the issue might be related to the handler function that's passed to the |
Hi @webloopbox , here's the declaration of the grid:
Now comes
And finally the three states involved
|
Hi @MichaelMatejko and @webloopbox , let me know if you were able to reproduce it and if the code is useful. Thanks a lot! 👍 |
Describe the bug
In Number Cells which have a Intl format, although the output is properly formatted and displayed in the cell, you cannot type in the cell as if you would be typing directly in the Intl format specified.
Current behavior
For example, if I set the Number Cells to have
Intl.NumberFormat('de-DE')
as format which uses,
as the decimal separator, I cannot type1,34
as the comma would be dropped, I need to type1.34
in order to see1,34
in the cell.Expected behavior
It should be possible to input numbers in the same way as they are represented by the Intl format
Your environment details
The text was updated successfully, but these errors were encountered: