gioser-web: fix graph click — clone Element before dyn_into

- dyn_into() consumes the value; clicking after that is a no-op.
- Clone the Element first, then dyn_into to HtmlElement and call click()
This commit is contained in:
Sergio
2026-05-23 17:02:40 +00:00
parent 97bea4c99f
commit a072538465
5 changed files with 39 additions and 37 deletions
+6 -6
View File
@@ -9,14 +9,14 @@ export interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly boot: () => void;
readonly __wasm_bindgen_func_elem_232: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_1456: (a: number, b: number, c: number, d: number) => void;
readonly __wasm_bindgen_func_elem_1462: (a: number, b: number, c: number, d: number) => void;
readonly __wasm_bindgen_func_elem_231: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_231_3: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_512: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_632: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_512_6: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_304: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_305: (a: number, b: number) => void;
readonly __wasm_bindgen_func_elem_518: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_638: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_518_6: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_310: (a: number, b: number, c: number) => void;
readonly __wasm_bindgen_func_elem_311: (a: number, b: number) => void;
readonly __wbindgen_export: (a: number, b: number) => number;
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_export3: (a: number) => void;