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:
@@ -353,7 +353,9 @@ impl AppState {
|
||||
if let Some(tip) = document_clone.query_selector(
|
||||
&format!(".tip[data-md][id='tip-{}']", el)
|
||||
).ok().flatten() {
|
||||
let _ = tip.dyn_into::<HtmlElement>().map(|e| e.click());
|
||||
// Clonar referencia antes de dyn_into (consume)
|
||||
let tip_html: HtmlElement = tip.clone().dyn_into().unwrap();
|
||||
tip_html.click();
|
||||
}
|
||||
});
|
||||
let mut graph = GraphWidget::new(
|
||||
|
||||
Reference in New Issue
Block a user