Skip to content

Commit

Permalink
fix(OverflowMenu): remove handlers from icon props (#9963)
Browse files Browse the repository at this point in the history
* fix(OverflowMenu): remove handlers from icon props

Closes #9962

* fix: data table overflow menu snap

Co-authored-by: Josefina Mancilla <[email protected]>
  • Loading branch information
FrivalszkyP and jnm2377 authored Nov 2, 2021
1 parent 26c053f commit f24e5f9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2522,16 +2522,12 @@ exports[`DataTable should render 1`] = `
<ForwardRef(Settings16)
aria-label="Settings"
className="bx--overflow-menu__icon"
onClick={[Function]}
onKeyDown={[Function]}
>
<Icon
aria-label="Settings"
className="bx--overflow-menu__icon"
fill="currentColor"
height={16}
onClick={[Function]}
onKeyDown={[Function]}
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width={16}
Expand All @@ -2543,8 +2539,6 @@ exports[`DataTable should render 1`] = `
fill="currentColor"
focusable="false"
height={16}
onClick={[Function]}
onKeyDown={[Function]}
preserveAspectRatio="xMidYMid meet"
role="img"
viewBox="0 0 16 16"
Expand Down Expand Up @@ -3586,16 +3580,12 @@ exports[`DataTable sticky header should render 1`] = `
<ForwardRef(Settings16)
aria-label="Settings"
className="bx--overflow-menu__icon"
onClick={[Function]}
onKeyDown={[Function]}
>
<Icon
aria-label="Settings"
className="bx--overflow-menu__icon"
fill="currentColor"
height={16}
onClick={[Function]}
onKeyDown={[Function]}
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width={16}
Expand All @@ -3607,8 +3597,6 @@ exports[`DataTable sticky header should render 1`] = `
fill="currentColor"
focusable="false"
height={16}
onClick={[Function]}
onKeyDown={[Function]}
preserveAspectRatio="xMidYMid meet"
role="img"
viewBox="0 0 16 16"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,12 @@ exports[`DataTable.TableToolbarMenu should render 1`] = `
<ForwardRef(Download16)
aria-label="Add"
className="bx--overflow-menu__icon"
onClick={[Function]}
onKeyDown={[Function]}
>
<Icon
aria-label="Add"
className="bx--overflow-menu__icon"
fill="currentColor"
height={16}
onClick={[Function]}
onKeyDown={[Function]}
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width={16}
Expand All @@ -100,8 +96,6 @@ exports[`DataTable.TableToolbarMenu should render 1`] = `
fill="currentColor"
focusable="false"
height={16}
onClick={[Function]}
onKeyDown={[Function]}
preserveAspectRatio="xMidYMid meet"
role="img"
viewBox="0 0 16 16"
Expand Down
2 changes: 0 additions & 2 deletions packages/react/src/components/OverflowMenu/OverflowMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,6 @@ class OverflowMenu extends Component {
);

const iconProps = {
onClick: this.handleClick,
onKeyDown: this.handleKeyDown,
className: overflowMenuIconClasses,
'aria-label': iconDescription,
};
Expand Down

0 comments on commit f24e5f9

Please sign in to comment.