-
Notifications
You must be signed in to change notification settings - Fork 685
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
[feature]: useScrollLock doesn't have an option to reset on unmount #4238
Comments
Hi @MichaelHeinzman. Thank you for your report. Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi, useScrollLock.mp4 |
https://github.com/adobe export issue to Jira project PWA |
@adobe export issue to Jira project PWA |
✅ Jira issue https://jira.corp.adobe.com/browse/PWA-3279 is successfully created for this GitHub issue. |
As We have waited for more than 14 days still we have not received any update , hence we are closing this ticket. |
Is your feature request related to a problem? Please describe.
I'm utilizing the Dialog component with venia-ui to display a loading modal on the screen for the user after placing an order. However the dialog uses useScrollLock and it sets the scroll lock to true when the modal is open. We navigate away from the page when the modal is displayed so I think that causes the useScrollLock to stay activated.
Describe the solution you'd like
On unmount, I would like useScrollLock to set the scroll lock to false, in cases where the modal doesn't have time to have it's isOpen updated.
Describe alternatives you've considered
I would say our problem is in our use case, so setting the scroll lock to false before we navigate away would be ideal, it's just I was thinking this should be apart of the hook itself.
It could be this was already implemented, since we are using an older version of venia-ui.
Please let us know what packages this feature is in regards to:
venia-ui
peregrine
The text was updated successfully, but these errors were encountered: