You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LiveSelect and LiveView versions
LiveSelect version: On latest commit 222b8c8.
LiveView version: 1.1.22
Describe the bug
The first selection in quick_tags mode causes the dropdown to disappear. I assume this is due to the container being updated thus making the field unfocused and triggers the blur which makes the hide_dropdown to true, according to this code:
@impl true
def handle_event("blur", _params, socket) do
socket =
socket
|> assign(:hide_dropdown, true)
|> client_select(%{
parent_event: socket.assigns[:"phx-blur"],
current_text:
if socket.assigns.mode == :single && socket.assigns.selection != [] do
List.first(socket.assigns.selection).label
else
""
end
})
{:noreply, socket}
end
LiveSelect and LiveView versions
LiveSelect version: On latest commit 222b8c8.
LiveView version: 1.1.22
Describe the bug
The first selection in quick_tags mode causes the dropdown to disappear. I assume this is due to the container being updated thus making the field unfocused and triggers the blur which makes the hide_dropdown to true, according to this code:
and here is the video of said issue:
Screencast.From.2026-02-20.10-45-21.mp4
Browsers
Chrome 144