Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix imports to play nicely with rollup #530

Merged
merged 1 commit into from Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CSSTransition.js
@@ -1,4 +1,4 @@
import * as PropTypes from 'prop-types';
import PropTypes from 'prop-types';
import addOneClass from 'dom-helpers/class/addClass';

import removeOneClass from 'dom-helpers/class/removeClass';
Expand Down
4 changes: 2 additions & 2 deletions src/ReplaceTransition.js
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import { findDOMNode } from 'react-dom'
import ReactDOM from 'react-dom'
import TransitionGroup from './TransitionGroup';

/**
Expand Down Expand Up @@ -28,7 +28,7 @@ class ReplaceTransition extends React.Component {
const child = React.Children.toArray(children)[idx];

if (child.props[handler]) child.props[handler](...originalArgs)
if (this.props[handler]) this.props[handler](findDOMNode(this))
if (this.props[handler]) this.props[handler](ReactDOM.findDOMNode(this))
}

render() {
Expand Down
2 changes: 1 addition & 1 deletion src/Transition.js
@@ -1,4 +1,4 @@
import * as PropTypes from 'prop-types'
import PropTypes from 'prop-types'
import React from 'react'
import ReactDOM from 'react-dom'

Expand Down