Relative Content

Tag Archive for bindingupdateslaravel-livewirelivewire-3laravel-livewire-wiremodel

In Livewire 3, after updating a property in the component class, the input chechbox in the Blade view does not change

I have in the order form a input text field that is binding to the accountForm property. I also have a input checkbox, bound to isChecked, if it is marked, the user account is also updated when the order is created. The checkbox is unchecked at the beginning (isChecked = false), but when the customer changes the input text, the updateAccountForm method in the class changed the property isChecked = true. This works, verified with dd, but the checkbox in the blade view remains unchecked. I am asking for your help in solving the problem. I have a feeling that it worked in Livewire 2.