Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed May 2, 2024
1 parent 9e03e77 commit 9b7b0e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/filter_group/filter_select_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ export class EuiFilterSelectItemClass extends Component<
const classes = classNames('euiFilterSelectItem', className);

const hasToolTip =
!disabled && React.isValidElement(children) && toolTipContent;
// we're using isValidElement here as EuiToolTipAnchor uses
// cloneElement to enhance the element with required attributes
React.isValidElement(children) && !disabled && toolTipContent;

let anchorProps = undefined;

if (hasToolTip) {
Expand Down

0 comments on commit 9b7b0e6

Please sign in to comment.