mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
JS - reset correctly radio buttons
This commit is contained in:
parent
4b49db7c95
commit
c01ef24541
3 changed files with 16 additions and 8 deletions
|
@ -481,6 +481,9 @@ class RadioButtonField extends Field {
|
|||
}
|
||||
|
||||
set value(value) {
|
||||
if (value === null) {
|
||||
this._value = "";
|
||||
}
|
||||
const i = this.exportValues.indexOf(value);
|
||||
if (0 <= i && i < this._radioIds.length) {
|
||||
this._id = this._radioIds[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue