afterStateUpdated in toggle in a custom component not firering
What I want to do
I want to have a toggle in my profilenav to switch to an expert mode for extended options. I am using the formbuilder not for its functionality but because of the consistent look and feel / easy way of getting a toggle.
What is happening
After refreshing the page the toggle is still turned off, even if I interacted with it. When toggleing I do not see any network activity, so I think that toggleing just doesnt do anything.
My code
5 Replies
Have you verified the
afterStateUpdated
is definitely not firing by chucking in a dd?
->live(onBlur: true)
I don't think you need onBlur: true
here@Matthew yeah, I tried that but that also didnt seem to do anything
Solution
add
$this->form->fill()
to the mount methodFilament
Form Builder - Common Errors to Avoid by Leandro Ferreira - Filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
Ahhh.. Thank you so much!