Skip to content

Commit

Permalink
[Chip] Remove unnecessary handleKeyDown event handler (mui#35231)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli authored and Daniel Rabe committed Nov 29, 2022
1 parent 5943d4a commit 1a8f708
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/mui-material/src/Chip/Chip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,7 @@ describe('<Chip />', () => {

it('should unfocus when a esc key is pressed', () => {
const handleBlur = spy();
const handleKeydown = spy();
const { getByRole } = render(
<Chip onBlur={handleBlur} onClick={() => {}} onKeyDown={handleKeydown} />,
);
const { getByRole } = render(<Chip onBlur={handleBlur} onClick={() => {}} />);
const chip = getByRole('button');
act(() => {
chip.focus();
Expand Down

0 comments on commit 1a8f708

Please sign in to comment.