We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7a768e commit 4739a58Copy full SHA for 4739a58
1 file changed
examples/pdf-server/src/mcp-app.ts
@@ -3507,6 +3507,10 @@ formLayerEl.addEventListener("input", (e) => {
3507
if (!target.checked) return; // unchecking siblings — ignore
3508
const wid = target.getAttribute("data-element-id");
3509
value = (wid && radioButtonValues.get(wid)) ?? target.value;
3510
+ } else if (target instanceof HTMLSelectElement && target.multiple) {
3511
+ // .value on a <select multiple> is only the first option; join them all
3512
+ // so save can select() the full set on a PDFOptionList.
3513
+ value = Array.from(target.selectedOptions, (o) => o.value).join(",");
3514
} else {
3515
value = target.value;
3516
}
0 commit comments