fix: also include values in onchange
@@ -2,7 +2,7 @@ export function main() {
let root = window.document.getElementById("main");
if (root != null) {
window.interpreter = new Interpreter(root);
- window.ipc.postMessage(serializeIpcMessage("initialize"))
+ window.ipc.postMessage(serializeIpcMessage("initialize"));
}
}
export class Interpreter {
@@ -207,7 +207,9 @@ export class Interpreter {
event.preventDefault();
const href = target.getAttribute("href");
if (href !== "" && href !== null && href !== undefined) {
- window.ipc.postMessage(serializeIpcMessage("browser_open", { href }))
+ window.ipc.postMessage(
+ serializeIpcMessage("browser_open", { href })
+ );
}
}
}
@@ -261,12 +263,13 @@ export class Interpreter {
if (realId == null) {
return;
}
- window.ipc.postMessage(serializeIpcMessage(
- "user_event", {
+ window.ipc.postMessage(
+ serializeIpcMessage("user_event", {
event: edit.event_name,
mounted_dom_id: parseInt(realId),
contents: contents,
- }));
+ })
+ );
}
};
this.NewEventListener(edit.event_name, edit.root, handler);
@@ -342,6 +345,7 @@ export function serialize_event(event) {
}
return {
value: value,
+ values: {},
};
}
case "input":
