-
-
Notifications
You must be signed in to change notification settings - Fork 382
Closed
Labels
Status: ReviewedHas been reviewed by a maintainerHas been reviewed by a maintainer
Description
Hi!
Currently we require you to set the "value" of a data-model
field:
<input data-model="firstName" value="{{ firstName }}">
The proposal is to not require this:
<input data-model="firstName">
Instead, on initial load (and re-render), the actual firstName
model value from your PHP component (i.e. the $firstName
property) would be used to set the value
on the input.
This is consistent with the behavior from both Livewire and frameworks like Vue.
kbond
Metadata
Metadata
Assignees
Labels
Status: ReviewedHas been reviewed by a maintainerHas been reviewed by a maintainer