Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Try to add the polyfill correctly this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenk2 committed Mar 7, 2024
1 parent 012cc92 commit 6934480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/terra-abstract-modal/src/AbstractModal.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// React-focus-on uses native promises which isn't available in IE11
import 'promise-polyfill/dist/polyfill.min';
import React, {
useLayoutEffect, useEffect, useRef, useCallback,
} from 'react';
Expand Down
2 changes: 0 additions & 2 deletions packages/terra-abstract-modal/src/_ModalContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import classNames from 'classnames';
import classNamesBind from 'classnames/bind';
import ThemeContext from 'terra-theme-context';
import VisuallyHiddenText from 'terra-visually-hidden-text';
// Polyfill because react-focus-on uses native promise which isn't available in IE11
import 'promise-polyfill/src/polyfill';
import { FocusOn } from 'react-focus-on';
import ModalOverlay from './_ModalOverlay';
import { hideModalDomUpdates, showModalDomUpdates } from './inertHelpers';
Expand Down

0 comments on commit 6934480

Please sign in to comment.