My sidebar plugin has some interactions that invoke confirmations via `window.confirm()`, e.g. deleting a line item pops up “Are you sure?” type messages.
These currently don’t work when viewing app in Front’s iframe sidebar, and I believe it’s because the “allow-modals” permission is not set on the iFrame sandbox.
Can this be added?
Sidebar Plugin: Need 'allow-modals' for window.confirm() to work
Best answer by jason
Hi Jim,
The Product Ideas portal is the right place to request both new features, and the addition of features you feel are missing. Our Product team reviews all new requests submitted there.
If memory serves me correctly, it may have been intentional that this was not implemented, due to the fact that window.alert and window.confirm appear on the top level window (i.e. overlaid on the primary Front UI), rather than being restricted to the iframe where the plugin is hosted (see this JSFiddle as an example).
Using a pre-built dialog/modal library like the one I shared above may be the fastest path to a resolution here.
Login to the community
No account yet? Create an account
Use your Front credentials
Log in with FrontEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
