Skip to content

Commit f5d0fd6

Browse files
committed
Fix canUseDOM import
1 parent eb9ecbe commit f5d0fd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import activeElement from 'dom-helpers/activeElement';
44
import contains from 'dom-helpers/contains';
5-
import canUseDom from 'dom-helpers/canUseDom';
5+
import canUseDOM from 'dom-helpers/canUseDOM';
66
import listen from 'dom-helpers/listen';
77
import PropTypes from 'prop-types';
88
import React from 'react';
@@ -260,7 +260,7 @@ class Modal extends React.Component {
260260
}
261261

262262
getSnapshotBeforeUpdate(prevProps) {
263-
if (canUseDom && !prevProps.show && this.props.show) {
263+
if (canUseDOM && !prevProps.show && this.props.show) {
264264
this.lastFocus = activeElement();
265265
}
266266
return null;

0 commit comments

Comments
 (0)