glicthing when using after state updated to update different fields

I’m not sure why, but something weird is happening. I want whatever I type in Name to show up in Slug automatically. But when I try to type in Address, it keeps getting erased on the address — like Filament is updating it and overwriting what I type.
11 Replies
khairulazmi_
khairulazmi_OP4w ago
sample code .
No description
Dennis Koch
Dennis Koch4w ago
I don’t understand the issue from your video. You say „when you type into B it gets erased“ but you don’t type in B because it’s disabled?
khairulazmi_
khairulazmi_OP4w ago
I mean . after I typing something on textInput name, then I go to address field and write something, it gets remove due to afterStateUpdated . @Dennis Koch .
Dennis Koch
Dennis Koch4w ago
Ah, I think this is a general Livewire issue when the response takes too long and the user inputs to fast.
khairulazmi_
khairulazmi_OP4w ago
I try it on demo filament site, on create category . there was no problem there. 😅 . when I try to type to fast , or using 3g network . still working well .
khairulazmi_
khairulazmi_OP4w ago
toeknee
toeknee4w ago
What systme are you using it on? It will likely be your system that's slower in that instance The more fields on the page too causes slower responses too, no caching, if debug mode is on, views with debug bar etc
khairulazmi_
khairulazmi_OP4w ago
Right now just on localhost and using herd .. I am using macbook m3 pro machine right now .
toeknee
toeknee4w ago
Should be very fast then Use telescope and review the network requests
khairulazmi_
khairulazmi_OP4w ago
Thanks ! do you have any idea why this still works on 3g network ?
toeknee
toeknee4w ago
Because the payload is likely less so a simple low request wouldn't effect the operation of a good optimised request

Did you find this page helpful?