flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Reinitialize properly on Form Validation Errors for Turbo

Open artinboghosian opened this issue 9 months ago • 0 comments

In the current integration, the turbo:load event doesn't capture every Turbo render—for example, forms that fail validation (returning a 422 status) aren't caught. Instead, turbo:render handles those cases and also covers all events that turbo:load does, except for the initial page load. To address this, I use DOMContentLoaded to ensure the initial load is handled properly.

artinboghosian avatar Feb 24 '25 17:02 artinboghosian