Closed rjahn closed 4 months ago
should be fixed in master_04_03_2024
via e140346c9524d369b2dd2c7152e5df1cfc3f1cbf & 7ed0484d2db319675243f48f9e9305da45615dfc
exception is gone!
Another console log occurs if you press a letter instead of a digit:
UIEditorNumber.tsx:355 Uncaught SyntaxError: Cannot convert 1456n to a BigInt (at UIEditorNumber.tsx:355:1)
at BigInt (<anonymous>)
at getDecimalValue (UIEditorNumber.tsx:355:1)
at isExceedingDecimalLength (UIEditorNumber.tsx:364:1)
at HTMLInputElement.<anonymous> (UIEditorNumber.tsx:377:1)
We shouldn't throw an error in this case because no problem occurs.
in which branch? this should actually be already fixed in both master & master_04_03 by 7ed0484d2db319675243f48f9e9305da45615dfc and 85af4bcf973f46243eb1ad9fc4d7a5795247e946 respectively
hm... the conversion problem is not reproducable. I tried with both branches. It occured with master_04_03 branch. Maybe a caching problem... I'll keep an eye on cache in future tests.
There's still a problem with numbers:
Enter 1
into the field social security nr
and leave the field -> 0001
(the field is a max 4 digit number)
Enter 2345 behind 1 -> endless typing possible. Enter 2345 behind first 0 -> no endless typing possible Enter 2345 behind second 0 -> 3 leading 0 occur and endless typing possible.
There's something wrong with number of allowed digits?
The metadata controls the digit count, but client implementation is buggy :(
The amount of allowed digits should be handled better now. -> 8340d7288ea68bcf3712064b79216e6e030a40b6
One problem that still exists and will be a tricky to solve is that negative values with leading zeros don't really work the way the formatting is currently implemented. They are added as a prefix to the PR NumberInput but that results in numbers like -13
being displayed as 0-13
All solutions are welcome.
I reworked the number input a bit and it seems to be working now. Are there any Numberinputs other than the SSNr I could test? Especially with decimal numbers and / or specific formats?
much better. Only thing is that it looks like an input mask if you enter 1 and 0001 is shown. The output format is good but is it possible to hide the format while editing?
formatting is now hidden during editing -> d5625ed8ec334188e96e42ff95d7c392f479fc83
Open Contacts(DB) of features user
Click on a record and: