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:
1 parent
fc1f1c26f1
commit
c13fb06bfa
9 files changed
+11
-9
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user