Livewire wire:dirty message doesn't hide by default.
Hello. I have a very simple form with the wire:dirty property. In my case, the dirty state is active by default. Always after refreshing the page, the message "Unsaved changes..." is visible, even though the input element contains exactly the same value as the variable on the server side. Only when I manually modify the value of the input element in the frontend and then revert to the previous value does the message disappear. What did I do wrong? This is a problem for me because when I open the final form for editing and fill all the fields with data from the database, livewire considers all the fields dirty. Please help because I can't find the answer anywhere.
It seems that the problem occurs only on my local environment (Herd) and only in the office.
I am at home now and everything works fine on both Herd and the production server.
Thanks again.
Ok I found the cause. My mistake. I didn't notice that in the office I had inserted the blade directive @livewireScripts in the layout app.blade.php. After removing it, everything works like a charm. Best regards and have a nice day.