diff --git a/packages/react-aria-components/stories/Modal.stories.tsx b/packages/react-aria-components/stories/Modal.stories.tsx
index 7469403fd33..36e8193359a 100644
--- a/packages/react-aria-components/stories/Modal.stories.tsx
+++ b/packages/react-aria-components/stories/Modal.stories.tsx
@@ -12,7 +12,7 @@
import {Button, ComboBox, Dialog, DialogTrigger, Heading, Input, Label, ListBox, Modal, ModalOverlay, Popover, TextField} from 'react-aria-components';
import {Meta, StoryFn} from '@storybook/react';
-import React, {useEffect} from 'react';
+import React from 'react';
import './styles.css';
import {MyListBoxItem} from './utils';
import styles from '../example/index.css';
@@ -69,129 +69,6 @@ export const ModalExample: ModalStory = () => (
);
-export const ModalInteractionOutsideExample: ModalStory = () => {
-
- useEffect(() => {
- let button = document.createElement('button');
- button.id = 'test-button';
- button.textContent = 'Click to close';
- button.style.position = 'fixed';
- button.style.top = '0';
- button.style.right = '0';
- button.style.zIndex = '200';
- document.body.appendChild(button);
-
- return () => {
- document.body.removeChild(button);
- };
- }, []);
-
- return (
-
-
- {
- if (el.id === 'test-button') {return true;}
- return false;
- }}
- style={{
- position: 'fixed',
- zIndex: 100,
- top: 0,
- left: 0,
- bottom: 0,
- right: 0,
- background: 'rgba(0, 0, 0, 0.5)',
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'center'
- }}>
-
-
-
-
-
- );
-};
-
-export const ModalInteractionOutsideDefaultOverlayExample: ModalStory = () => {
-
- useEffect(() => {
- let button = document.createElement('button');
- button.id = 'test-button';
- button.textContent = 'Click to close';
- button.style.position = 'fixed';
- button.style.top = '0';
- button.style.right = '0';
- button.style.zIndex = '200';
- document.body.appendChild(button);
- return () => {
- document.body.removeChild(button);
- };
- }, []);
-
- return (
-
-
- {
- if (el.id === 'test-button') {return true;}
- return false;
- }}
- style={{
- position: 'fixed',
- top: '50%',
- left: '50%',
- transform: 'translate(-50%, -50%)',
- background: 'Canvas',
- color: 'CanvasText',
- border: '1px solid gray',
- padding: 30
- }}>
-
-
-
- );
-};
-
function InertTest() {
return (