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

Add prop to control tooltip placement #23

Merged
merged 2 commits into from
Nov 15, 2020

Conversation

johndatserakis
Copy link
Owner

@johndatserakis johndatserakis commented Nov 15, 2020

Resolves #22.

  • Adds a tooltipPlacement prop that will let users set their desired dropdown placement.

@jeffreykthomas thank you for your research. I had to tweak the actual implementation just a bit by setting the actual placement on the tippy options and also on the popper overrides. In my testing, I found that I needed it like this to work.

I broke it out into a prop in case users want to adjust this themselves dynamically. The default behavior will be the behavior you brought up in your issue. Which, now that you brought it up, I find to be the correct way - that is, the dropdown should always drop downward pretty much in every case.

Can you please review this pr, then I'll merge it in as a new release at v.4.1.0.

@jeffreykthomas
Copy link

Looks great to me John! Thank you for working on this!

@johndatserakis johndatserakis merged commit af05628 into develop Nov 15, 2020
@johndatserakis johndatserakis deleted the jd-22-fix-tooltip-placement branch November 15, 2020 22:04
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.

Possible height breakpoint?
2 participants