Problem with float hydration in german format #2636
Unanswered
axelhooges
asked this question in
Questions & Answers
Replies: 2 comments
-
Hi, now, i tried to solve the issue with an HydrationExtension. It is all the same. The hydrate-method gets an array with the old values, but it is never called with the new value!? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi again :-) Ok, it is working, if i am evaluating the post parameters for myself and manipulate the data:
Is it best practice? I don't think so :-) Especially the access to $_POST |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I have a problem that I can't solve after trying for a long time.
I have a LiveComponent with an array of DTOs as LiveProp.
The type of some of the DTOs attributes is float, but i want to show the german format on webpage.
A change to a value on the web page does not arrive in my method, so I cannot manually adjust the format at all.
A pre-assigned value for “amount” is displayed correctly, e.g. with 10,50
However, if I change the value to e.g. 10,90 it does not work. With a breakpoint in the hydrate method, I can see that the old value 10,50 is always passed.
What am I doing wrong?
Many thanks and best regards
Axel
Beta Was this translation helpful? Give feedback.
All reactions