mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Forgot to gate pushImg (#27212)
`pushImg` should have been gated by enableFloat Added in #27191
This commit is contained in:
1 parent
f359f9b41a
commit
533fc28c1b
1 file changed
+3
-1
@@ -3245,7 +3245,9 @@ export function pushStartInstance(
|
||||
return pushStartPreformattedElement(target, props, type);
|
||||
}
|
||||
case 'img': {
|
||||
return pushImg(target, props, resources);
|
||||
return enableFloat
|
||||
? pushImg(target, props, resources)
|
||||
: pushSelfClosing(target, props, type);
|
||||
}
|
||||
// Omitted close tags
|
||||
case 'base':
|
||||
|
||||
Reference in new issue
Block a user