diff --git a/src/lib/components/common/Dropdown.svelte b/src/lib/components/common/Dropdown.svelte index 580a95fd..89d6b694 100644 --- a/src/lib/components/common/Dropdown.svelte +++ b/src/lib/components/common/Dropdown.svelte @@ -1,8 +1,15 @@ - + { + dispatch('change', state); + }} +> diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index e5ea74fe..c8d81715 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -520,6 +520,9 @@ deleteHandler={() => { chatDeleteId = chat.id; }} + onClose={() => { + selectedChatId = null; + }} >