Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable modals by adding "allow-modals" to sandbox attribute. #12414

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mohammednumaan
Copy link

Summary

This PR adds the allow-modals to the sandbox attribute, enabling the playground environment to open modals.

Fixes #12023

Problem

Playground examples can't run functions like window.alert, window.prompt and much more because the iframe requires the allow-modals in the sandbox attribute. Not enabling allow-modals doesn't allow any playground which uses modals to be opened, for example this.

Solution

This PR adds the allow-modals value to the sandbox attribute and resolves the issue.


Screenshots

Before

image

After

image


@mohammednumaan mohammednumaan requested a review from a team as a code owner January 9, 2025 09:14
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playground doesn't allow-modals
1 participant