|
if (!attachedListeners.has(eventName)) attachedListeners.set(eventName, new Set()); |
|
const listeners = attachedListeners.get(eventName); |
|
if (listeners.has(listenerName)) return; |
Version 1.9.0 added a deduplication mechanism for event listeners, but did not remove the corresponding records. This causes the component to fail to update the event listener when it is remounted and the container is specified.
react-scroll/modules/mixins/passive-event-listeners.js
Lines 13 to 15 in 526bab0
Version 1.9.0 added a deduplication mechanism for event listeners, but did not remove the corresponding records. This causes the component to fail to update the event listener when it is remounted and the container is specified.