Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit f85ac4b

Browse files
Chris GuerreroThomasBurleson
authored andcommitted
fix(mdPanel): fix error when opening a previously closed panel
Ensures the `_removeListeners` collection is reset with a new array literal instead of null. Closes #8894 Closes #8895
1 parent 35a46c8 commit f85ac4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/panel/panel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ MdPanelRef.prototype._removeEventListeners = function() {
12871287
this._removeListeners && this._removeListeners.forEach(function(removeFn) {
12881288
removeFn();
12891289
});
1290-
this._removeListeners = null;
1290+
this._removeListeners = [];
12911291
};
12921292

12931293

0 commit comments

Comments
 (0)