mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
fix(ui): add sandbox props to iframe (#1757)
add sandbox props to iframe
This commit is contained in:
parent
ba50de5d66
commit
62d2afe957
2 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
// FIXME: @simeng
|
||||
/* eslint-disable react/iframe-missing-sandbox */
|
||||
import classNames from 'classnames';
|
||||
import { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
@ -37,6 +35,7 @@ const IframeConfirmModal = ({
|
|||
<div className={styles.content}>
|
||||
{isLoading && <LoadingIcon />}
|
||||
<iframe
|
||||
sandbox={undefined}
|
||||
className={isLoading ? styles.hidden : undefined}
|
||||
role="iframe"
|
||||
src={url}
|
||||
|
@ -64,4 +63,3 @@ const IframeConfirmModal = ({
|
|||
};
|
||||
|
||||
export default IframeConfirmModal;
|
||||
/* eslint-enable react/iframe-missing-sandbox */
|
||||
|
|
2
packages/ui/src/include.d/dom.d.ts
vendored
2
packages/ui/src/include.d/dom.d.ts
vendored
|
@ -73,7 +73,7 @@ type AutoCompleteType =
|
|||
| 'tel-country-code'
|
||||
| 'tel-national';
|
||||
|
||||
// TODO: @simeng remove me
|
||||
// LOG-2893 should remove this once we have API response guard
|
||||
interface Body {
|
||||
json<T>(): Promise<T>;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue