Skip to content

Conversation

asross
Copy link
Contributor

@asross asross commented Apr 7, 2016

This is a tiny change to allow passing a string to the dropdownParent option, so it can be used even when the parent component is rendered isomorphically.

We were unable to use this component initially because we needed the select2 dropdown to be appended to a particular element rather than the <body>. Select2 does support a dropdownParent option, but unfortunately it requires an element instead of a string (although I feel like it should support a string selector). So perhaps we should be making this pull request to select2 instead, but updating the React component was the most immediate solution to our problem -- and the problem is in some sense specific to react, because the reason we can't pass in the element is because we don't always have access to document when we initially render.

@rkit rkit merged commit c197218 into rkit:master Apr 9, 2016
@rkit
Copy link
Owner

rkit commented Apr 9, 2016

I agree. Thanks.

rkit added a commit that referenced this pull request Apr 9, 2016
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.

2 participants