F
Filament11mo ago
camya

Filament 3 version of the **"Title With Slug" Input - Easy Permalink Slugs** - Bug

Hi. At the moment, we try to make the Filament 2 Plugin compatible with Filament 3. Everything looks fine, except there's are weird character skip bug while typing in the title. (See video in the PR below) https://github.com/camya/filament-title-with-slug/pull/24 Maybe someone of you have an idea, how to easily fix it. Any help is welcome. 🙂
GitHub
Filament v3 Support (Fixes #23) by Log1x · Pull Request #24 · camya...
Change log 🔧 Update readOnly to comply with Filament v3 🔧 Update the plugin ServiceProvider to support Filament v3 💄 Update Slug input style to match Filament v3 🔧 Update the slug-input field wrap...
4 Replies
justgkp
justgkp11mo ago
Use ->live() ->debounce()
awcodes
awcodes11mo ago
Yep. You need debounce. You’re typing faster than the request can comeback from the server so it will dom diff and erase what ever to typed in since the request was sent.
Batou Rau
Batou Rau10mo ago
This is exactly what I was looking for