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:
parent
bda98b91cb
commit
55808238e4
4 changed files with 46 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue