diff --git a/packages/emoji-mart/src/components/Picker/Picker.tsx b/packages/emoji-mart/src/components/Picker/Picker.tsx index aa7c5884..bd96e811 100644 --- a/packages/emoji-mart/src/components/Picker/Picker.tsx +++ b/packages/emoji-mart/src/components/Picker/Picker.tsx @@ -106,7 +106,7 @@ export default class Picker extends Component { componentWillUnmount() { this.unregister() - this.darkMedia?.removeEventListener(this.darkMediaCallback); + this.darkMedia?.removeListener(this.darkMediaCallback); } async reset(nextState = {}) {