Skip to content

The first selection in quick_tags mode causes the dropdown to disappear #136

@RisPNG

Description

@RisPNG

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

and here is the video of said issue:

Screencast.From.2026-02-20.10-45-21.mp4

Browsers
Chrome 144

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions