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:
@@ -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