Skip to content

Commit

Permalink
debug: add logging to select to try and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jan 5, 2025
1 parent 83999e6 commit a2e9c9a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ export const GenericSelectQueryField = forwardRef<HTMLInputElement, GenericSelec
const renderSelect = () => {
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 (
Expand Down

0 comments on commit a2e9c9a

Please sign in to comment.