Skip to content

fix(multiple): ensure mat-option parents are the offsetParent #30977

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

crisbeto
Copy link
Member

We have several components where we use the offsetTop of the mat-option to determine how much to scroll, however this only works if the panel is the option's offsetParent. For that to happen we need a position different from static.

Fixes #30974.

We have several components where we use the `offsetTop` of the `mat-option` to determine how much to scroll, however this only works if the panel is the option's `offsetParent`. For that to happen we need a position different from `static`.

Fixes angular#30974.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Apr 29, 2025
@crisbeto crisbeto requested a review from a team as a code owner April 29, 2025 11:53
@crisbeto crisbeto requested review from mmalerba and wagnermaciel and removed request for a team April 29, 2025 11:53
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Apr 29, 2025
@crisbeto crisbeto merged commit 3465f92 into angular:main Apr 29, 2025
28 of 30 checks passed
crisbeto added a commit to crisbeto/material2 that referenced this pull request Apr 29, 2025
…r#30977)

We have several components where we use the `offsetTop` of the `mat-option` to determine how much to scroll, however this only works if the panel is the option's `offsetParent`. For that to happen we need a position different from `static`.

Fixes angular#30974.
crisbeto added a commit that referenced this pull request Apr 29, 2025
#30980)

We have several components where we use the `offsetTop` of the `mat-option` to determine how much to scroll, however this only works if the panel is the option's `offsetParent`. For that to happen we need a position different from `static`.

Fixes #30974.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
2 participants