You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The minimal version of web-sys is 0.3.56 (package/web/Cargo.toml) and the package/web/src/events/mounted.rs module use the set_behavior method that is existing since 0.3.70.
That's trigger compilation issues when we build the project with minimal version.
error[E0599]: no method named `set_behavior` found for struct `ScrollIntoViewOptions` in the current scope
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dioxus-web-0.6.0-alpha.5/src/events/mounted.rs:74:25
|
74 | options.set_behavior(web_sys::ScrollBehavior::Instant);
| ^^^^^^^^^^^^
|
help: there is a method `behavior` with a similar name
|
74 | options.behavior(web_sys::ScrollBehavior::Instant);
| ~~~~~~~~
Environment:
Dioxus version: 0.6.0-alpha.5
Rust version: 1.82.0
OS info: MacOS
App platform: web`
Questionnaire
I would like to fix and I have a solution (bump web-sys to 0.3.70)
The text was updated successfully, but these errors were encountered:
Problem
The minimal version of
web-sys
is0.3.56
(package/web/Cargo.toml) and thepackage/web/src/events/mounted.rs
module use theset_behavior
method that is existing since0.3.70
.That's trigger compilation issues when we build the project with minimal version.
Environment:
Questionnaire
I would like to fix and I have a solution (bump web-sys to 0.3.70)
The text was updated successfully, but these errors were encountered: