Files
fizzy/app/javascript/controllers
Jorge Manrubia 55ea460d3e Handle form errors with a stimulus class
We need to keep the focus in place when submitting the form. We are using a data-turbo-permanent for that. We were rendering the error form with a turbo stream. The problem was that turbo streams ignore permanent elements as per this https://github.com/hotwired/turbo/pull/688, so the system wasn't updating the input field as expected.

Handling this as the stimulus level will also help with managing additional error states (such as the one we need for confirmations).
2025-05-07 08:46:47 +02:00
..
2024-06-21 13:19:56 +01:00
2024-08-19 17:33:12 -05:00
2025-04-09 14:09:08 -05:00
2024-06-21 13:19:56 +01:00
2024-11-29 15:52:45 -06:00
2025-05-06 09:32:35 +02:00