Skip to content

Conversation

crisbeto
Copy link
Member

Fixes that when closing and immediately reopening bottom sheet in a zoneless app, we were causing a "changed after checked" error to be thrown. It seems to be because we were calling detectChanges without marking for check first.

Fixes #29258.

Fixes that when closing and immediately reopening bottom sheet in a zoneless app, we were causing a "changed after checked" error to be thrown. It seems to be because we were calling `detectChanges` without marking for check first.

Fixes angular#29258.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jun 18, 2024
@crisbeto crisbeto requested a review from a team as a code owner June 18, 2024 07:14
@crisbeto crisbeto requested review from amysorto and mmalerba and removed request for a team June 18, 2024 07:14
.subscribe(() => {
this._toggleClass(
const classList = (this._elementRef.nativeElement as HTMLElement).classList;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is unrelated to the fix, I just figured it's a good chance for a cleanup.

@crisbeto crisbeto removed the request for review from mmalerba June 18, 2024 19:26
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 18, 2024
@crisbeto crisbeto merged commit aaea0e2 into angular:main Jun 18, 2024
crisbeto added a commit that referenced this pull request Jun 18, 2024
…#29277)

Fixes that when closing and immediately reopening bottom sheet in a zoneless app, we were causing a "changed after checked" error to be thrown. It seems to be because we were calling `detectChanges` without marking for check first.

Fixes #29258.

(cherry picked from commit aaea0e2)
DBowen33 pushed a commit to DBowen33/components that referenced this pull request Jul 3, 2024
…angular#29277)

Fixes that when closing and immediately reopening bottom sheet in a zoneless app, we were causing a "changed after checked" error to be thrown. It seems to be because we were calling `detectChanges` without marking for check first.

Fixes angular#29258.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(MatBottomSheet): zoneless - Expression has changed after it was checked
2 participants