Skip to content

Commit 40a44d3

Browse files
authored
Bug: fix sending obsolete event on clicking in LiveDebugger (#863)
1 parent 5b597c3 commit 40a44d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/live_debugger/app/web/components.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,12 @@ defmodule LiveDebugger.App.Web.Components do
441441
]}
442442
>
443443
<div
444-
phx-click-away="close-sidebar"
445-
class="h-full w-80 bg-sidebar-bg flex flex-col gap-1 justify-between border-x border-default-border lg:border-l"
444+
class="w-full h-full lg:hidden"
445+
phx-click="close-sidebar"
446446
{@event_target && %{:"phx-target" => @event_target} || %{}}
447447
>
448+
</div>
449+
<div class="shrink-0 h-full w-80 bg-sidebar-bg flex flex-col gap-1 justify-between border-x border-default-border lg:border-l">
448450
<.icon_button
449451
:if={!@sidebar_hidden?}
450452
icon="icon-cross"

0 commit comments

Comments
 (0)