feat(material/menu): allow updating menu position a la autocomplete #22046
+14
−0
Conversation
|
The changes look good, but the CI is failing because:
|
src/material/menu/menu-trigger.ts
Outdated
| */ | ||
| updatePosition(): void { | ||
| if (this._overlayRef) { | ||
| this._overlayRef.updatePosition(); |
crisbeto
Mar 14, 2021
Member
nit: can be reduce to this._overlayRef?.updatePosition().
nit: can be reduce to this._overlayRef?.updatePosition().
terencehonles
Mar 15, 2021
Author
Contributor
👍 wasn't sure which was preferred here.
336e038
to
a03b5c5
|
Thanks, I was expecting I'd have time to update the PR earlier, but I'll probably tied up for a bit if that doesn't handle everything. |
a03b5c5
to
4dff505
4dff505
to
e95cac6
|
LGTM |
ad24865
into
angular:master
16 checks passed
16 checks passed
|
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
On document changes the menu may not be located in the correct location anymore. This exposes the
OverlayRef'supdatePositionon the trigger so a user can call it without relying on the private variable_overlayRef.