Skip to content

Commit

Permalink
fix: primefaces#7613, MultiSelect showClear Keyboard Trap
Browse files Browse the repository at this point in the history
  • Loading branch information
ANTONA09 committed Jan 20, 2025
1 parent bccc654 commit 67c3960
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/lib/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -948,9 +948,6 @@ export const MultiSelect = React.memo(
};

const onClearIconKeyDown = (event) => {
event.preventDefault();
event.stopPropagation();

switch (event.code) {
case 'Space':
case 'NumpadEnter':
Expand All @@ -960,6 +957,8 @@ export const MultiSelect = React.memo(
}

updateModel(event, [], []);
event.preventDefault();
event.stopPropagation();
break;
}
};
Expand Down

0 comments on commit 67c3960

Please sign in to comment.