1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Set correctly the change property for the event triggered when a choice list is changed

It fixes #17998.
This commit is contained in:
Calixte Denizet 2024-04-24 13:02:03 +02:00
parent bda98b91cb
commit 55808238e4
4 changed files with 46 additions and 0 deletions

View file

@ -1993,6 +1993,7 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
selectElement.addEventListener("input", event => {
const exportValue = getValue(/* isExport */ true);
const change = getValue(/* isExport */ false);
storage.setValue(id, { value: exportValue });
event.preventDefault();
@ -2003,6 +2004,7 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
id,
name: "Keystroke",
value: selectedValues,
change,
changeEx: exportValue,
willCommit: false,
commitKey: 1,