Skip to content

Commit 0fb5b61

Browse files
authored
Float integrity bugfix (#27224)
Stacked on #27223 When a script resource adopts certain props from a preload for that resource the integrity prop was incorrectly getting assinged to the referrerPolicy prop instead. This is now fixed.
1 parent 5ea1397 commit 0fb5b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ function adoptPreloadPropsForScript(
28722872
if (scriptProps.referrerPolicy == null)
28732873
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
28742874
if (scriptProps.integrity == null)
2875-
scriptProps.referrerPolicy = preloadProps.integrity;
2875+
scriptProps.integrity = preloadProps.integrity;
28762876
}
28772877
28782878
type KeyedTagCache = Map<string, Array<Element>>;

0 commit comments

Comments
 (0)