adobe / adobe/react-spectrum

ModalOverlay: Keep content mounted when closed

Open
#9,670 2 comments 0 reactions 0 assignees View on GitHub
enhancement waiting
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the feature here

Would it be possible to somehow keep content mounted when the modal is closed? We're working on a modal sheet with an iframe, and we would like to preload the iframe while the modal is closed.

### 🤔 Expected Behavior?

Prop that allows the ModalOverlay to stay mounted while closed

### 😯 Current Behavior

Content is unmounted when the modal closes.

### 💁 Possible Solution

_No response_

### 🔦 Context

Iframe in a sheet like modal

### 💻 Examples

_No response_

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the ModalOverlay component entry point and trace how its content is mounted when closed. Locate the relevant tests before editing, then add coverage for the requested prop and verify that content remains mounted while the modal is closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.