Set up "reactive properties" for form fields #273
Labels
docs done
The documentation has been fully completed for this issue
done on branch
This issue has been committed to the latest branch, and will get merged with the next release
enhancement
New feature or request
Milestone
Currently, putting a reactive variable in an input field, doing some typing and then changing the reactive variable, doesn't update the property of the input field. It only changes the attribute - not what you can see.
But if you don't change the value property by typing, changes to the value attribute, via a reactive variable, does update the property. It's a bit niche, but that's what the browser does.
I can't think of a valid reason why you wouldn't want the property to change also if you specifically set up a reactive variable for the value attribute.
So I think it would be good to also change the property of an input field if the attribute changes as a result of an changed reactive attribute. This wouldn't violate existing behaviour, because the browser doesn't natively support reactive variables yet, and you would specifically have to set it up in the code anyway. As I say, I can't think why you would want to update the value of an input field dynamically without also updating the value property.
This would mean that CRUD forms would, in scenarios set up to utilise this behaviour, be easier to write and require less mark-up. So here's the issue for it.
The text was updated successfully, but these errors were encountered: