openedx / paragon

💎 An accessible, theme-ready design system built for learning applications and Open edX.

Home Page:https://paragon-openedx.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Playground] Ignored call to 'alert()'. The document is sandboxed, and the 'allow-modals' keyword is not set.

PKulkoRaccoonGang opened this issue · comments

Feedback summary

The current implementation of the Playground, unfortunately, does not call and display native alerts. For example, if we send an alert call to onClick, we get the error:

Ignored call to 'alert()'. The document is sandboxed, and the 'allow-modals' keyword is not set.

image

I have a PR up that fixes this here #2987, but I do wonder if we actually want to support using alert() in the playground or not.