Closed kingsleyh closed 1 year ago
Duplicate of #10.
Unfortunately, there's no good solution to this -- the best you could really do is wrap the component in a <span>
It did not work to wrap in a span for the onInput event unfortunately - the component didn't get all the value just the last few characters typed
Oh sorry, I didn't see the oninput
event. You can use the oninput
prop: https://docs.rs/material-yew/latest/material_yew/text_inputs/struct.TextFieldProps.html#structfield.oninput
Hi
Could someone put an example of how to use these components with events? e.g.
As the user types I want to take the value from the text input and write into an H1 element below the text field
with a regular input field I would do like this - could someone put an example using this MatTextField componet?
Any help appreciated