Skip to content

Commit 533fc28

Browse files
authored
Forgot to gate pushImg (#27212)
`pushImg` should have been gated by enableFloat Added in #27191
1 parent f359f9b commit 533fc28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3245,7 +3245,9 @@ export function pushStartInstance(
32453245
return pushStartPreformattedElement(target, props, type);
32463246
}
32473247
case 'img': {
3248-
return pushImg(target, props, resources);
3248+
return enableFloat
3249+
? pushImg(target, props, resources)
3250+
: pushSelfClosing(target, props, type);
32493251
}
32503252
// Omitted close tags
32513253
case 'base':

0 commit comments

Comments
 (0)