ampproject / ampproject/amp.dev

Playground renders itself into preview frame when an `<amp-lightbox-gallery>` is exited

Open
#6,064 6 comments 0 reactions 0 assignees View on GitHub
Category: Playground P3: Low Type: Bug
Dominant language
HTML
Stars
600
Forks
675
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

### Current behavior
Playground renders itself into preview frame when an `` is exited

https://playground.amp.dev/?url=https%3A%2F%2Fpreview.amp.dev%2Fdocumentation%2Fexamples%2Fcomponents%2Famp-lightbox-gallery&format=websites

https://user-images.githubusercontent.com/254946/126695724-27dc8d82-3bb4-4e83-91e1-d38a7903f9f7.mov

### Expected behavior/code
The preview document should remain displayed.

### Reproduction procedure
Please provide the steps to reproduce the problem:

1. Click on any image in the preview pane. A lightbox opens.
2. Click on close (`x`) button at top-right of lightbox.
3. Playground is displayed, nested.

(Chrome 91 / macOS)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.