Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some of elements lost their's responsiveness #1811

Closed
serzhiio opened this issue Jan 11, 2024 · 3 comments · Fixed by #1812
Closed

Some of elements lost their's responsiveness #1811

serzhiio opened this issue Jan 11, 2024 · 3 comments · Fixed by #1812
Labels
bug Something isn't working core relating to the core implementation of the virtualdom

Comments

@serzhiio
Copy link
Contributor

After latest update i've discovered that some of my elements with onlick and oninput events, stopped producing events. Really can't understand what happened?
Any significant changes?

@ealmloff
Copy link
Member

There have been a lot of recent changes to the git version of dioxus. This could be related to #1402 or #1534. Can you provide more information about your platform, the component that no longer works and the version of dioxus you are using?

@serzhiio
Copy link
Contributor Author

Here is what i found:

pub fn Form(cx: Scope) -> Form {
   let dynamic_class = if true {"first"} else {"second"};
   cx.render(rsx!(
      input{class:"flex-col w-full text-sm px-2 text-white border rounded-r-none",
          class: dynamic_class,
          oninput: |_| log::debug!("input event"),
      }
   ))
}

if i put dynamic_class to input element's classes, it stops producing event, if i remove it everything is OK.

@serzhiio
Copy link
Contributor Author

My deps:

dioxus = {git="https://github.com/DioxusLabs/dioxus"}
dioxus-web = {git="https://github.com/DioxusLabs/dioxus"}
fermi = {git="https://github.com/DioxusLabs/dioxus"}

@ealmloff ealmloff added bug Something isn't working core relating to the core implementation of the virtualdom labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core relating to the core implementation of the virtualdom
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants