Skip to content

Commit

Permalink
Merge pull request #1913 from tomasztomys/feature/react-v0.14-support…
Browse files Browse the repository at this point in the history
…-grid-list

[React v0.14] Add react-dom and ReactDOM.findDOMNode in grid-list.
  • Loading branch information
oliviertassinari committed Oct 19, 2015
2 parents d310459 + 0fe1a92 commit 7943e16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/grid-list/grid-tile.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const React = require('react');
const ReactDOM = require('react-dom');
const StylePropable = require('../mixins/style-propable');
const DefaultRawTheme = require('../styles/raw-themes/light-raw-theme');
const ThemeManager = require('../styles/theme-manager');
Expand Down Expand Up @@ -126,7 +127,7 @@ const GridTile = React.createClass({
},

_ensureImageCover() {
let imgEl = React.findDOMNode(this.refs.img);
let imgEl = ReactDOM.findDOMNode(this.refs.img);

if (imgEl) {
let fit = () => {
Expand Down

0 comments on commit 7943e16

Please sign in to comment.