Skip to content

Commit

Permalink
Fix canUseDOM import
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Sep 4, 2019
1 parent eb9ecbe commit f5d0fd6
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 @@ -2,7 +2,7 @@

import activeElement from 'dom-helpers/activeElement';
import contains from 'dom-helpers/contains';
import canUseDom from 'dom-helpers/canUseDom';
import canUseDOM from 'dom-helpers/canUseDOM';
import listen from 'dom-helpers/listen';
import PropTypes from 'prop-types';
import React from 'react';
Expand Down Expand Up @@ -260,7 +260,7 @@ class Modal extends React.Component {
}

getSnapshotBeforeUpdate(prevProps) {
if (canUseDom && !prevProps.show && this.props.show) {
if (canUseDOM && !prevProps.show && this.props.show) {
this.lastFocus = activeElement();
}
return null;
Expand Down

0 comments on commit f5d0fd6

Please sign in to comment.