-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: Stop double scroll issue #151
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@vinnyjth Did you mean to assign me? What would you like me to do? |
@redreceipt I meant to assign @nlewis84 but I would always love your review |
@nlewis84 can have it :)Sent from my iPhoneOn Jan 26, 2024, at 1:45 PM, Vincent Wilson ***@***.***> wrote:
@redreceipt I meant to assign @nlewis84 but I would always love your review
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
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.
Looks good. I compared to how it was previously, and I think this works more as expected. This is the first "real" PR since the linter changes. Any weirdness there?
@vinnyjth Thanks for the changes to |
🐛 Issue
With the search modal open, it was possible to scroll on the page itself instead of in the modal alone.
✏️ Solution
This was a complex issue to solve. The results list was nested inside of the search input, meaning that it's rendering was technically an
overflow
of the search input.To resolve this, I moved the result list outside of the search input, meaning that it properly captured scroll events instead of letting them pass through.
In order to move the result list, I had to move break apart the
Autocomplete
component, hence the large number of lines changed.🔬 To Test
index.html
to demonstrate the issue. I'll roll it back after you test, if you want :)ngrok
to test on your phone as well.📸 Screenshots