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

Interaction of use_state with <form> tag #3676

Open
ArtyomSinyugin opened this issue Jul 6, 2024 · 0 comments
Open

Interaction of use_state with <form> tag #3676

ArtyomSinyugin opened this issue Jul 6, 2024 · 0 comments
Labels

Comments

@ArtyomSinyugin
Copy link

Problem: counter always returns to 0, if the button inside

tag (as well as text returns to initial state if it is from input tag)
In my test project use_state does not work correctly with html tag

Steps To Reproduce
I have that code:
html! {

{Search} { *counter } } onclick Event is connected to function component, which is the past-copy of the counter from Docs: https://yew.rs/docs/getting-started/build-a-sample-app

Environment:

  • Yew version: [e.g. v0.21, master]
  • Rust version: [e.g. 1.78.0, stable]
  • Target: [wasm32-unknown-emscripten]
  • Build tool: [trunk]
  • OS, if relevant: [e.g. Windows]
  • Browser: [Chrome]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant