-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(menu): unable to swap menu panel after first open #13819
Conversation
a3b0260
to
3a805ff
Compare
Fixes the menu trigger being locked into the first menu panel that is passed in, after it has been opened at least once. Relates to angular#13812.
3a805ff
to
fc5f5d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
if (menu) { | ||
this._menuCloseSubscription = menu.close.asObservable().subscribe(reason => { | ||
this._destroyMenu(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that you need to add this._menuCloseSubscription here to this._cleanUpSubscriptions();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not required, because the close
stream gets completed when the menu panel is destroyed.
Fixes the menu trigger being locked into the first menu panel that is passed in, after it has been opened at least once. Relates to angular#13812.
Fixes the menu trigger being locked into the first menu panel that is passed in, after it has been opened at least once. Relates to #13812.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes the menu trigger being locked into the first menu panel that is passed in, after it has been opened at least once.
Relates to #13812.