mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 12:13:04 +00:00
remove latent comment with typo
This commit is contained in:
parent
412f0b5c44
commit
3d16ae855e
1 changed files with 0 additions and 24 deletions
|
@ -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();
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue