From a2e9c9a2cc5474c29b465c044ae449be9ff35b5c Mon Sep 17 00:00:00 2001 From: Niek Candaele Date: Sun, 5 Jan 2025 11:45:26 +0100 Subject: [PATCH] debug: add logging to select to try and debug --- .../inputs/selects/SelectQueryField/Generic/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx b/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx index 243d5ef82..428609846 100644 --- a/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx +++ b/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx @@ -201,6 +201,12 @@ export const GenericSelectQueryField = forwardRef { const hasProps = options && options[0].props; const hasOptions = hasProps && Children.count(options[0].props.children) > 1; + console.log('options', options); + console.log('hasOptions', hasOptions); + console.log('hasProps', hasProps); + console.log('options[0].props', options[0].props); + console.log('Children.count(options[0].props.children)', Children.count(options[0].props.children)); + console.log('options[0].props.children', options[0].props.children); // initialFocus=-1 is used to prevent the first item from being focused when the list opens return (