Select component resets after save or state update
I have a simple form on custom page with select component but when I click on save button the it resets the select component (blank with no styling) and I get an error in console:
Uncaught (in promise) TypeError: Expected one of the following types text|select-one|select-multiple
Test.php
test.blade.php
2 Replies
because you have no livewire properties for your fields, check the docs
the easiest way is to define
public $data = []
and then return data
from getFormStatePath()
Okay, it worked, thanks!