Skip to content

Commit 1b7e0af

Browse files
scottlovegroveBloomca
authored andcommitted
chore: Code tidy
1 parent f6ab522 commit 1b7e0af

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/menu/menu.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ function Menu({ children, onItemSelect, ...props }: MenuProps) {
7676
const getAnchorRect = React.useMemo(() => (anchorRect ? () => anchorRect : null), [anchorRect])
7777
const menuStore = useMenuStore({ focusLoop: true, ...props })
7878

79-
React.useEffect(() => {
80-
if (!state.open) handleAnchorRectChange(null)
81-
}, [state.open])
82-
8379
const handleItemSelect = React.useCallback(
8480
function handleItemSelect(value: string | null | undefined) {
8581
onItemSelect?.(value)

src/tooltip/tooltip.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ function Tooltip({
126126
<>
127127
<TooltipAnchor
128128
render={(anchorProps) => {
129-
// Let child props override anchor props so user can specify attributes like tabIndex
130-
// Also, do not apply the child's props to TooltipAnchor as props like `as` can create problems
131-
// by applying the replacement component/element twice
132129
return React.cloneElement(child, {
133130
...child.props,
134131
...anchorProps,

0 commit comments

Comments
 (0)