-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(reposition-scroll-strategy): add option for closing once the user scrolls away #8233
Conversation
scrollThrottle?: number; | ||
|
||
/** Whether to close the overlay once the user has scrolled away completely. */ | ||
close?: boolean; |
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.
autoClose
?
0593f40
to
ce32dcb
Compare
Renamed to |
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
@crisbeto lint
|
…r scrolls away Adds an option to the `RepositionScrollStrategy` that tells it to close the overlay once the user has scrolled away. This is a steps towards moving the scroll clipping logic away from the `ConnectedPositionStrategy`.
ce32dcb
to
f3d3ba9
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. |
Adds an option to the
RepositionScrollStrategy
that tells it to close the overlay once the user has scrolled away. This is a step towards moving the scroll clipping logic away from theConnectedPositionStrategy
.Note: The new option is intended to be on by default, however a lot of components don't handle programmatic detachments correctly at the moment. They are being addressed in separate PRs (#8232, #7950).