-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(expansion): respect parent accordion hideToggle binding #12725
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(expansion): respect parent accordion hideToggle binding #12725
Conversation
* Fixes that the expansion panels no longer respect the bindings of a parent `<mat-accordion>`. (this has been accidentally changes in angular#6529) * Fixes that the expansion panel does not re-render if the `[hideToggle]` binding is set on the accordion. * Removes the unused `_getHideToggle` method. This method is no longer used because the panel header directly accesses the panel through DI.
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
/** Determines whether the expansion panel should have spacing between it and its siblings. */ | ||
_hasSpacing(): boolean { | ||
if (this.accordion) { | ||
// We don't need to subscribe to the `stateChanges` of the parent accordion because each time |
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.
This seems like a weird place to put this comment, but I don't have any better suggestions.
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
* Fixes that the expansion panels no longer respect the bindings of a parent `<mat-accordion>`. (this has been accidentally changes in #6529) * Fixes that the expansion panel does not re-render if the `[hideToggle]` binding is set on the accordion. * Removes the unused `_getHideToggle` method. This method is no longer used because the panel header directly accesses the panel through DI.
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. |
<mat-accordion>
. (this has been accidentally changes in feat(expansion-panel): add the ability to disable an expansion panel #6529)[hideToggle]
binding is updated on the accordion._getHideToggle
method. This method is no longer used because the panel header directly accesses the panel through DI.