From 857c3e86705ab2b2504c5628c9ef5acd5678b061 Mon Sep 17 00:00:00 2001 From: Quan Ho Date: Thu, 17 Oct 2024 14:07:34 +0200 Subject: [PATCH] fix: unbind close listener --- src/master-item-subscriber.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/master-item-subscriber.js b/src/master-item-subscriber.js index 6fbdfa1d..8b17157d 100644 --- a/src/master-item-subscriber.js +++ b/src/master-item-subscriber.js @@ -103,6 +103,7 @@ export default function MasterItemSubscriber({ model, callback }) { unsubscribe() { Object.keys(subscriptions).forEach((libraryId) => { subscriptions[libraryId].listener.dispose(); + subscriptions[libraryId].unbindCloseListnener(); }); subscriptions = {}; },