Skip to content

Commit

Permalink
#132: Fix issue with react-router <Link />
Browse files Browse the repository at this point in the history
  • Loading branch information
srph committed Nov 3, 2015
1 parent 6d845cd commit 8a36c4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/components/Dropdown/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { cloneElement, PropTypes } from 'react';
import { findDOMNode, render, unmountComponentAtNode } from 'react-dom';
import { findDOMNode, unstable_renderSubtreeIntoContainer, unmountComponentAtNode } from 'react-dom';
import utils from './utils';
import { isNodeInRoot } from '../../utils/DomUtils';

Expand Down Expand Up @@ -71,7 +71,8 @@ export default class Dropdown extends React.Component {
throw new Error('Container does not exist. It may have been removed, or whatever');
}

this.$dropdown = render(
this.$dropdown = unstable_renderSubtreeIntoContainer(
this,
cloneElement(this.props.children, {
style: {
top: this.state.top,
Expand Down

0 comments on commit 8a36c4b

Please sign in to comment.