fix: clear the integrations search when leaving a section (#28812)

This commit is contained in:
G30 authored and GitHub committed 2026-08-19 16:14:53 -07:00
1 parent ea55d38793
commit dd7158b45f
1 file changed
+4
@@ -260,6 +260,8 @@
{closeOnOutsideClick} {closeOnOutsideClick}
onOpenChange={(state) => { onOpenChange={(state) => {
if (state === false) { if (state === false) {
toolQuery = '';
skillQuery = '';
onClose(); onClose();
} }
}} }}
@@ -474,6 +476,7 @@
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
toolQuery = '';
tab = ''; tab = '';
}} }}
> >
@@ -589,6 +592,7 @@
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
skillQuery = '';
tab = ''; tab = '';
}} }}
> >