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.
Josh Story committed
Aug 14, 2023 at 10:10 UTC
0fb5b61ac6951a492242618e4ace6c1826335efc
1 file changed
+1
-1
packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js
+1
-1
@@ -2872,7 +2872,7 @@ function adoptPreloadPropsForScript(
2872
if (scriptProps.referrerPolicy == null)
2873
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
2874
if (scriptProps.integrity == null)
2875
- scriptProps.referrerPolicy = preloadProps.integrity;
2875
+ scriptProps.integrity = preloadProps.integrity;
2876
}
2877
2878
type KeyedTagCache = Map<string, Array<Element>>;