Skip to content
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

Merged
merged 3 commits into from
Jan 29, 2024
Merged

fix: Stop double scroll issue #151

merged 3 commits into from
Jan 29, 2024

Conversation

vinnyjth
Copy link
Member

@vinnyjth vinnyjth commented Jan 26, 2024

🐛 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

  1. I made a mess of index.html to demonstrate the issue. I'll roll it back after you test, if you want :)
  2. I recommend using ngrok to test on your phone as well.

📸 Screenshots

image
CleanShot 2024-01-26 at 12 22 11@2x

CleanShot 2024-01-26 at 12 22 08@2x

Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
apollos-micro-service ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2024 8:08pm
apollos-web-embeds ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2024 8:08pm

@redreceipt
Copy link
Member

@vinnyjth Did you mean to assign me? What would you like me to do?

@vinnyjth vinnyjth assigned nlewis84 and unassigned redreceipt Jan 26, 2024
@vinnyjth
Copy link
Member Author

@redreceipt I meant to assign @nlewis84 but I would always love your review

@redreceipt
Copy link
Member

redreceipt commented Jan 26, 2024 via email

Copy link
Contributor

@nlewis84 nlewis84 left a 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?

@nlewis84
Copy link
Contributor

@vinnyjth Thanks for the changes to index. You can totally revert and ditch those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants