This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
mdPanel: Can't re-open a closed panel #8894
Copy link
Copy link
Closed
Labels
has: Pull RequestA PR has been created to address this issueA PR has been created to address this issue
Description
Actual Behavior:
What is the issue?
* The following error is thrown when attempting to call theopen()
method on anMdPanelRef
that has already been created, opened, and then closed:
TypeError: Cannot read property 'push' of null
What is the expected behavior?
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
http://codepen.io/chrisguerrero/pen/zBZWyxDetails:
I've modified the panel demo from the docs to call the$mdPanel.create()
method the first time the panel is shown, then store a reference to theMdPanelRef
. The second time you try to open the modal, theshow()
method is called on theMdPanelRef
, which throws the error.
Angular Versions: *
Angular Version:
1.5.5Angular Material Version:
v1.1.0-rc.5-master-15da974
Additional Information:
Browser Type: *
AllBrowser Version: *
AllOS: *
AllStack Traces:
TypeError: Cannot read property 'push' of null
at MdPanelRef._configureScrollListener (VM3709 angular-material.js:14477)
at MdPanelRef._addEventListeners (VM3709 angular-material.js:14368)
at addListeners (VM3709 angular-material.js:13989)
at processQueue (VM3702 angular.js:15961)
at VM3702 angular.js:15977
at Scope.$eval (VM3702 angular.js:17229)
at Scope.$digest (VM3702 angular.js:17045)
at Scope.$apply (VM3702 angular.js:17337)
at HTMLButtonElement.<anonymous> (VM3702 angular.js:25023)
at defaultHandlerWrapper (VM3702 angular.js:3456)
Shortcut to create a new CodePen Demo.
Note: *
indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.
devversion
Metadata
Metadata
Assignees
Labels
has: Pull RequestA PR has been created to address this issueA PR has been created to address this issue