@samitouri / QOS-React-1 / commits / 533fc28c1b

Forgot to gate pushImg (#27212)

`pushImg` should have been gated by enableFloat Added in #27191

Josh Story committed Aug 10, 2023 at 16:42 UTC 533fc28c1b8ea2c6ed459e914849665f497755ff
1 file changed +3 -1
packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js
+3 -1
@@ -3245,7 +3245,9 @@ export function pushStartInstance(
3245 return pushStartPreformattedElement(target, props, type);
3246 }
3247 case 'img': {
3248 - return pushImg(target, props, resources);
3248 + return enableFloat
3249 + ? pushImg(target, props, resources)
3250 + : pushSelfClosing(target, props, type);
3251 }
3252 // Omitted close tags
3253 case 'base':