Skip to content

Commit 6caee08

Browse files
committed
fix(iframe-plugin): replace htmlAttribs in onLinkPress with empty object
1 parent 2ef3c3d commit 6caee08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/iframe-plugin/src/HTMLIframe.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export default function HTMLIframe({
7373
source,
7474
style,
7575
onLinkPress,
76-
htmlAttribs,
7776
scaleFactor,
7877
scalesPageToFit = false
7978
}: HTMLIframeProps) {
@@ -90,8 +89,8 @@ export default function HTMLIframe({
9089
);
9190
const onDOMLinkPress = useCallback(
9291
({ uri }: LinkPressTarget) =>
93-
onLinkPress?.call(null, { nativeEvent: {} } as any, uri, htmlAttribs),
94-
[onLinkPress, htmlAttribs]
92+
onLinkPress?.call(null, { nativeEvent: {} } as any, uri, {}),
93+
[onLinkPress]
9594
);
9695
const webViewProps = useWebshell({
9796
features: [...features, scaleFeature as any],

0 commit comments

Comments
 (0)