Skip to content

Commit

Permalink
[OPIK-717] Fix click into a span in the tree-viewer in Safari (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferc authored Jan 8, 2025
1 parent 0862113 commit ab1b0e6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export const treeRenderers: TreeRenderProps = {
props.context.isFocused && styles.focused,
)}
{...(props.context.itemContainerWithoutChildrenProps as object)}
onClick={() => {
if (props.context.interactiveElementProps.onFocus) {
props.context.focusItem();
}
}}
onFocus={props.context.interactiveElementProps.onFocus}
>
<div className={cn(styles.chainItemContainer)}>
Expand Down

0 comments on commit ab1b0e6

Please sign in to comment.