yew_styles icon indicating copy to clipboard operation
yew_styles copied to clipboard

`value` prop for inputs

Open philip-peterson opened this issue 4 years ago • 1 comments

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?

philip-peterson avatar Jan 19 '21 22:01 philip-peterson

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

dancespiele avatar Jan 21 '21 01:01 dancespiele