Skip to content

[Bug]: JS of a button is not executed #19378

@g19i85g

Description

@g19i85g

Attach (recommended) or Link to PDF file

three_buttons_same_name.pdf

Web browser and its version

Firefox 134.0 (64-Bit)

Operating system and its version

Linux

PDF.js version

v4.10.38

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. open the PDF in PDF.js
  2. klick on the button "set text to BBB"

What is the expected behavior?

The text field should contain “BBB”.

Image

What went wrong?

If several buttons with the same name exist. Only the JavaScript of the first button is executed, regardless of which button is pressed.

Link to a viewer

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions