remove latent comment with typo

This commit is contained in:
Jonathan Kelley 2024-11-01 12:08:09 -07:00
parent 412f0b5c44
commit 3d16ae855e
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -479,27 +479,3 @@ function getTargetId(target: EventTarget): NodeId | null {
return parseInt(realId);
}
// function applyFileUpload() {
// let inputs = document.querySelectorAll("input");
// for (let input of inputs) {
// if (!input.getAttribute("data-dioxus-file-listener")) {
// // prevent file inputs from opening the file dialog on click
// const type = input.getAttribute("type");
// if (type === "file") {
// input.setAttribute("data-dioxus-file-listener", true);
// input.addEventListener("click", (event) => {
// let target = event.target;
// let target_id = find_real_id(target);
// if (target_id !== null) {
// const send = (event_name) => {
// const message = window.interpreter.serializeIpcMessage("file_diolog", { accept: target.getAttribute("accept"), directory: target.getAttribute("webkitdirectory") === "true", multiple: target.hasAttribute("multiple"), target: parseInt(target_id), bubbles: event_bubbles(event_name), event: event_name });
// window.ipc.postMessage(message);
// };
// send("change&input");
// }
// event.preventDefault();
// });
// }
// }
// }