JS -- Fix doc.getField and add missing field methods

- getField("foo") was wrongly returning a field named "foobar";
 - field object had few missing unimplemented methods
This commit is contained in:
Calixte Denizet 2021-01-07 19:22:37 +01:00
parent 952bc08ec0
commit 82f75a8ac2
4 changed files with 169 additions and 3 deletions

View file

@ -73,7 +73,8 @@ function initSandbox(params) {
const obj = objs[0];
obj.send = send;
obj.globalEval = globalEval;
obj.doc = _document.wrapped;
obj.doc = _document;
obj.fieldPath = name;
let field;
if (obj.type === "radiobutton") {
const otherButtons = objs.slice(1);