fix(interpreter): missing scrollTo boolean return value (#3734)

* fix(interpreter): missing scrollTo boolean return value

* docs(examples): unwrap scroll_to instead of discarding result values
This commit is contained in:
Youn Mélois authored and GitHub committed 2025-02-13 11:37:13 -08:00
1 parent fc1f1c26f1
commit c13fb06bfa
9 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ fn app() -> Element {
button {
onclick: move |_| async move {
if let Some(header) = header_element.cloned() {
let _ = header.scroll_to(ScrollBehavior::Smooth).await;
header.scroll_to(ScrollBehavior::Smooth).await.unwrap();
}
},
"Scroll to top"