From 08daede2212712db2ebd564d074137c4569e65ac Mon Sep 17 00:00:00 2001 From: Barsnes Date: Mon, 18 Nov 2024 15:28:23 +0100 Subject: [PATCH] cleani --- .../react/src/components/form/Combobox/v2/ComboboxClear.tsx | 1 - .../react/src/components/form/Combobox/v2/ComboboxList.tsx | 5 ----- 2 files changed, 6 deletions(-) diff --git a/packages/react/src/components/form/Combobox/v2/ComboboxClear.tsx b/packages/react/src/components/form/Combobox/v2/ComboboxClear.tsx index 2c59e9bf73..6fdc11884e 100644 --- a/packages/react/src/components/form/Combobox/v2/ComboboxClear.tsx +++ b/packages/react/src/components/form/Combobox/v2/ComboboxClear.tsx @@ -22,7 +22,6 @@ export const ComboboxClear = forwardRef( const handleClear = ( event: React.MouseEvent, ) => { - console.log('clear', inputRef?.current); if (!inputRef?.current) throw new Error('Input is missing'); /* narrow type to make TS happy */ if (!(inputRef?.current instanceof HTMLInputElement)) diff --git a/packages/react/src/components/form/Combobox/v2/ComboboxList.tsx b/packages/react/src/components/form/Combobox/v2/ComboboxList.tsx index 09c2cbd487..ea56438b3e 100644 --- a/packages/react/src/components/form/Combobox/v2/ComboboxList.tsx +++ b/packages/react/src/components/form/Combobox/v2/ComboboxList.tsx @@ -23,7 +23,6 @@ export const ComboboxList = forwardRef( useEffect(() => { const observer = new MutationObserver((cb) => { for (const mutation of cb) { - console.log({ mutation }); if (mutation.attributeName === 'hidden') { setOpen(!(mutation.target as Element).hasAttribute('hidden')); } @@ -32,15 +31,11 @@ export const ComboboxList = forwardRef( observer.observe(listRef.current as Node, { attributes: true, - childList: false, - subtree: false, }); return () => observer.disconnect(); }, [listRef]); - console.log({ open }); - useEffect(() => { if (id && listId !== id) setListId?.(id); }, [listId, id, setListId]);