stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
472 stars 180 forks source link

Form : field with automatic calculation #2545

Open TheLimace opened 1 week ago

TheLimace commented 1 week ago

Hi,

I have a bug when use pdf form field with calculation.

I can reproduce the case in the showcase :

  1. URL : https://pdfviewer.net/extended-pdf-viewer/scripting
  2. on lines (2,3,4,5), you can enter a number in the form field. when you focus on the next field, the sub total is calculate in field "sous-total". but if you click anywhere on the document, the calculation won't be performed. if you click on another form field, it works. On other viewer, you can click anywhere, calculation works.

image

stephanrauh commented 1 week ago

Let's check if it's my bug or if it's a bug of pdf.js. Can you reproduce the bug on https://mozilla.github.io/pdf.js/web/viewer.html?

TheLimace commented 1 week ago

Hello,

I can't reproduce the bug on https://mozilla.github.io/pdf.js/web/viewer.html. It works fine.

stephanrauh commented 1 week ago

That's weird. To be honest, I don't think I'm able to fix the bug. It happens in a large module I've never modified.