Skip to content

Add dropdownComponent prop#2

Merged
TrevorBurnham merged 2 commits intomasterfrom
add-dropdown-component-prop
Feb 24, 2016
Merged

Add dropdownComponent prop#2
TrevorBurnham merged 2 commits intomasterfrom
add-dropdown-component-prop

Conversation

@TrevorBurnham
Copy link
Contributor

This allows an additional wrapper component to be added around the menuContainer. This custom component can be used to render the menu elsewhere, e.g. via react-portal. The intent here is to offer users a solution to JedWatson/react-select#697 without diverging too much from the upstream.

This allows an additional wrapper to be added around the menuContainer,
e.g. a "portal" component with position: fixed.
@colbyr
Copy link

colbyr commented Feb 24, 2016

👍

TrevorBurnham added a commit that referenced this pull request Feb 24, 2016
@TrevorBurnham TrevorBurnham merged commit 2f86677 into master Feb 24, 2016
@TrevorBurnham TrevorBurnham deleted the add-dropdown-component-prop branch February 24, 2016 22:06
@wbprice
Copy link

wbprice commented May 9, 2016

@TrevorBurnham do you have an example of using this new feature with react-portal?

@TrevorBurnham TrevorBurnham mentioned this pull request Jun 14, 2016
@Liooo
Copy link

Liooo commented Dec 13, 2017

@wbprice
been long time, but this worked for me

https://gist.github.com/Liooo/3bd6c79d5b4bdcded9927bbdd9133af0

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.

4 participants