Files
fizzy/app/javascript/controllers
Italo Matos e23b871172 Fix: Maintain search input focus after form submission
Problem:
When pressing Enter in the search input field, focus was lost after
the form was submitted and the Turbo Frame updated with search results.
This forced users to click back into the field to continue interacting
with the search.

Solution:
Added a turbo:frame-load event listener in the bar controller's
showModalAndSubmit method that automatically restores focus to the
search input after the Turbo Frame finishes loading the results.
The listener uses {once: true} to auto-cleanup after execution.
2025-12-16 12:25:25 -03:00
..
2024-06-21 13:19:56 +01:00
2025-07-24 14:49:53 -05:00
2025-04-09 14:09:08 -05:00
2024-06-21 13:19:56 +01:00
2025-09-12 11:01:56 +02:00
2025-07-22 22:42:36 -05:00
2025-09-22 15:52:30 -05:00