Use the original value of a field when propagating event (fixes #17540)

And avoid to not format a field when the value is 0.
This commit is contained in:
Calixte Denizet 2024-01-19 17:47:05 +01:00
parent f8e3c79cb5
commit 5732c0c54a
6 changed files with 81 additions and 8 deletions

View file

@ -220,10 +220,6 @@ class AForm {
bCurrencyPrepend
) {
const event = globalThis.event;
if (!event.value) {
return;
}
let value = this.AFMakeNumber(event.value);
if (value === null) {
event.value = "";