Skip to content

Commit

Permalink
fix(SelectToggle): corrected removeEventListener on unmount for v4 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye authored Jul 26, 2023
1 parent 28e863a commit 0cbca14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Select/SelectToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class SelectToggleBase extends React.Component<SelectToggleProps> {
}

componentWillUnmount() {
document.removeEventListener('click', this.onDocClick);
document.removeEventListener('click', this.onDocClick, { capture: true });
document.removeEventListener('touchstart', this.onDocClick);
document.removeEventListener('keydown', this.handleGlobalKeys);
}
Expand Down

0 comments on commit 0cbca14

Please sign in to comment.