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: fixes scroll into view in custom container elements #677

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

Sigrsig
Copy link
Collaborator

@Sigrsig Sigrsig commented May 30, 2023

Fixes issue: 674

What did you change (functionally and technically)?
When attempting to scroll through the custom container elements an error would occur. I found that the custom container was being rendered inside the unordered list instead of around it. Rearranged the elements

Checklist (remove this list before you submit the PR)

  • Are there tests for the new code? No
  • Does the code comply to our code conventions? Yes
  • Does the PR resolve the whole issue? Yes

How to test:

  • Add maxHeight and overflowY: 'auto' to the list styling in SuggestionsOverlay.js
  • Run react-mentions and open on localhost
  • Scroll down to the custom container element
  • Pull up the suggestions list with the '@' button
  • Try scrolling through the list with the up and down buttons

@changeset-bot
Copy link

changeset-bot bot commented May 30, 2023

🦋 Changeset detected

Latest commit: 931744f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented May 30, 2023

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

Name Status Preview Comments Updated (UTC)
react-mentions ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2023 2:52pm

Copy link
Contributor

@steffektif steffektif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the comment I mentioned below. Also please merge the latest master into your branch if that did not happen already.

Co-authored-by: Stef ❤️ <stefan.herz@sap.com>
@Sigrsig Sigrsig merged commit a69db87 into master Jun 1, 2023
4 checks passed
@Sigrsig Sigrsig deleted the fix-autoscrolling-custom branch June 1, 2023 06:24
Sigrsig added a commit that referenced this pull request Jun 1, 2023
* custom suggestions container revised to allow scrolling

* changeset added

* Update .changeset/smart-eyes-kiss.md

Co-authored-by: Stef ❤️ <stefan.herz@sap.com>

---------

Co-authored-by: Stef ❤️ <stefan.herz@sap.com>
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.

None yet

3 participants