A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix(iframe): disable scrolling not working (#4017)
Meier Lukas7ac2a81f945c
diff --git a/packages/old-import/src/widgets/options.ts b/packages/old-import/src/widgets/options.tsindex 813815ea6..fba538522 100644--- a/packages/old-import/src/widgets/options.ts+++ b/packages/old-import/src/widgets/options.ts@@ -98,7 +98,6 @@ const optionMapping: OptionMapping = {allowMicrophone: (oldOptions) => oldOptions.allowMicrophone,allowGeolocation: (oldOptions) => oldOptions.allowGeolocation,allowScrolling: (oldOptions) => oldOptions.allowScrolling,- allowTransparency: (oldOptions) => oldOptions.allowTransparency,},video: {feedUrl: (oldOptions) => oldOptions.FeedUrl,diff --git a/packages/widgets/src/iframe/component.tsx b/packages/widgets/src/iframe/component.tsxindex 3f32742c7..ae8a2bcfa 100644--- a/packages/widgets/src/iframe/component.tsx+++ b/packages/widgets/src/iframe/component.tsx@@ -27,6 +27,7 @@ export default function IFrameWidget({ options, isEditMode }: WidgetComponentProsrc={embedUrl}title="widget iframe"allow={allowedPermissions.join(" ")}+ scrolling={options.allowScrolling ? "yes" : "no"}><Text>{t("widget.iframe.error.noBrowerSupport")}</Text></iframe>@@ -71,7 +72,9 @@ const UnsupportedProtocol = () => {);};-const getAllowedPermissions = (permissions: Omit<WidgetComponentProps<"iframe">["options"], "embedUrl">) => {+const getAllowedPermissions = (+ permissions: Omit<WidgetComponentProps<"iframe">["options"], "embedUrl" | "allowScrolling">,+) => {return objectEntries(permissions).filter(([_key, value]) => value).map(([key]) => permissionMapping[key]);@@ -84,6 +87,4 @@ const permissionMapping = {allowGeolocation: "geolocation",allowMicrophone: "microphone",allowPayment: "payment",- allowScrolling: "scrolling",- allowTransparency: "transparency",-} satisfies Record<keyof Omit<WidgetComponentProps<"iframe">["options"], "embedUrl">, string>;+} satisfies Record<keyof Omit<WidgetComponentProps<"iframe">["options"], "embedUrl" | "allowScrolling">, string>;diff --git a/packages/widgets/src/iframe/index.ts b/packages/widgets/src/iframe/index.tsindex 725e1b3fc..9e6cc06e1 100644--- a/packages/widgets/src/iframe/index.ts+++ b/packages/widgets/src/iframe/index.ts@@ -12,7 +12,6 @@ export const { definition, componentLoader } = createWidgetDefinition("iframe",allowScrolling: factory.switch({defaultValue: true,}),- allowTransparency: factory.switch(),allowPayment: factory.switch(),allowAutoPlay: factory.switch(),allowMicrophone: factory.switch(),