Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
feat: remove string ref
Browse files Browse the repository at this point in the history
  • Loading branch information
plag authored and jquense committed Jun 18, 2018
1 parent 76f782c commit 0576a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Modal extends React.Component {
>
<div
key='modal'
ref='inner'
ref={r => this.innerRef = r }
className={cn(
prefix + '-dialog'
, dialogClassName
Expand Down Expand Up @@ -219,7 +219,7 @@ class Modal extends React.Component {
this.setState({ classes: '' }, ()=> {
if (this.props.show) {
// eslint-disable-next-line no-unused-expressions
this.refs.inner.offsetWidth
this.innerRef.offsetWidth
this.setState({
classes: attentionClass + ' animated',
})
Expand Down

0 comments on commit 0576a6e

Please sign in to comment.