diff --git a/assets/js/hooks/events/handler.ts b/assets/js/hooks/events/handler.ts index 1f503f97..7d4b897f 100644 --- a/assets/js/hooks/events/handler.ts +++ b/assets/js/hooks/events/handler.ts @@ -26,7 +26,7 @@ export function handleList({ nodes }: { nodes: Node[] }) { // focus last item const lastItem = container.lastElementChild as HTMLDivElement; - focusItem(lastItem); + focusItem(lastItem, true); } export function handleInsert({ diff --git a/lib/radiator_web/live/episode_live/index.ex b/lib/radiator_web/live/episode_live/index.ex index e20232f0..6cafc37d 100644 --- a/lib/radiator_web/live/episode_live/index.ex +++ b/lib/radiator_web/live/episode_live/index.ex @@ -62,6 +62,16 @@ defmodule RadiatorWeb.EpisodeLive.Index do |> reply(:noreply) end + def handle_event("set_collapsed", _node_id, socket) do + socket + |> reply(:noreply) + end + + def handle_event("set_expanded", _node_id, socket) do + socket + |> reply(:noreply) + end + def handle_event("create_node", params, socket) do user = socket.assigns.current_user episode = socket.assigns.selected_episode