Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@
"eslint-plugin-react": "^7.11.1",
"in-publish": "^2.0.0",
"mocha": "^5.2.0",
"react": "^16.3.0",
"react-dnd": "^7.3.0",
"react-dom": "^16.3.0",
"react": ">=16.3.0",
"react-dnd": ">=7.3.0",
"react-dom": ">=16.3.0",
"sinon": "^7.1.1",
"sinon-chai": "^3.2.0"
},
"peerDependencies": {
"react": "^16.3.0",
"react-dnd": "^7.3.0",
"react-dom": "^16.3.0"
"react": ">=16.3.0",
"react-dnd": ">=7.3.0",
"react-dom": ">=16.3.0"
}
}
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import throttle from 'lodash.throttle';
import raf from 'raf';
import getDisplayName from 'react-display-name';
Expand Down Expand Up @@ -113,8 +112,7 @@ export function createScrollingComponent(WrappedComponent) {
}

componentDidMount() {
// eslint-disable-next-line react/no-find-dom-node
this.container = findDOMNode(this.wrappedInstance.current);
this.container = this.wrappedInstance.current;

if (this.container && typeof this.container.addEventListener === 'function') {
this.container.addEventListener('dragover', this.handleEvent);
Expand Down
Loading