Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot bind Livewire to Model #23

Open
MCKLtech opened this issue Jun 13, 2023 · 1 comment
Open

Cannot bind Livewire to Model #23

MCKLtech opened this issue Jun 13, 2023 · 1 comment

Comments

@MCKLtech
Copy link

MCKLtech commented Jun 13, 2023

We're using the following code to bind to a $state array:

<x-tel-input
wire:model.defer="state.{{$key}}"
wire:key="{{$key}}"
class="form-input"
/>

However, the phone number is never saved and is empty in the array. We've tried to use defer, lazy etc.

I'm not sure if would make a difference, but we have two fields, a phone and a phone confirmation.

@hsmfawaz
Copy link

checkout this comment
#16 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants