mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
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:
parent
f8e3c79cb5
commit
5732c0c54a
6 changed files with 81 additions and 8 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue