-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(drawer): drawer container not reacting to drawer removal #7060
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(drawer): drawer container not reacting to drawer removal #7060
Conversation
e5c6ce2 to
faabcd1
Compare
src/lib/sidenav/drawer.ts
Outdated
| @Output('positionChanged') onPositionChanged = new EventEmitter<void>(); | ||
|
|
||
| /** Event emitted when the drawer's mode changes. */ | ||
| @Output('modeChanged') onModeChanged = new EventEmitter<void>(); |
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.
since this is really just for internal coordination, can we make it a Subject with no @Output() and _ name?
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.
Sure, I did this to keep it consistent with the positionChanged.
faabcd1 to
d816484
Compare
|
Addressed the feedback @mmalerba. |
|
@mmalerba I just tried throwing in the unit tests from this PR into master. It looks like your changes fixed one of the issues, but they still don't handle the case where a drawer is destroyed so I'd say it's worth keeping this PR around. |
d816484 to
db61f29
Compare
|
Rebased and scoped my changes only to the |
src/lib/sidenav/drawer.ts
Outdated
| if (!this._drawers.length || | ||
| this._isDrawerOpen(this._start) || | ||
| this._isDrawerOpen(this._end) | ||
| ) { |
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.
style nit: move to end of previous line
db61f29 to
63b3191
Compare
Fixes the drawer container not reacting if one of the drawers is destroyed. Fixes angular#6271.
63b3191 to
8bd26dc
Compare
|
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 drawer container not reacting if one of the drawers is destroyed.
Fixes #6271.