dancespiele / yew_styles

Yew Styles is a style framework for yew
https://yewstyles.spielrs.tech/
Apache License 2.0
156 stars 13 forks source link

`value` prop for inputs #88

Open philip-peterson opened 3 years ago

philip-peterson commented 3 years ago

Hi there, I was interested in creating a controlled input, but it seems there's no way to set a value. Does the framework have an opinion about this? Or maybe it's just a feature yet to be implemented?

dancespiele commented 3 years ago

I had issues including value where always it brings me to the beginning of the input when I tried to write between words anyway you don't need it to get the value, you can see this example https://docs.rs/yew_styles/0.9.0/yew_styles/forms/form_input/struct.FormInput.html . If you want something controlled for example write something in the input when you click a button for now you need to use web_sys , I will do a minimal example to reproduce the error and check with yew community, of course if you know how can include value without having this issue feel free in open a PR