File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
packages/react-dom-bindings/src/client Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -1369,14 +1369,23 @@ function warnForBlockInsideInline(instance: HTMLElement) {
13691369 node . nodeType === ELEMENT_NODE &&
13701370 getComputedStyle ( ( node : any ) ) . display === 'block'
13711371 ) {
1372- console . error (
1373- "You're about to start a <ViewTransition> around a display: inline " +
1374- 'element <%s>, which itself has a display: block element <%s> inside it. ' +
1375- 'This might trigger a bug in Safari which causes the View Transition to ' +
1376- 'be skipped with a duplicate name error.\n' +
1377- 'https://bugs.webkit.org/show_bug.cgi?id=290923' ,
1378- instance . tagName . toLocaleLowerCase ( ) ,
1379- ( node : any ) . tagName . toLocaleLowerCase ( ) ,
1372+ const fiber =
1373+ getInstanceFromNode ( node ) || getInstanceFromNode ( instance ) ;
1374+ runWithFiberInDEV (
1375+ fiber ,
1376+ ( parentTag : string , childTag : string ) => {
1377+ console . error (
1378+ "You're about to start a <ViewTransition> around a display: inline " +
1379+ 'element <%s>, which itself has a display: block element <%s> inside it. ' +
1380+ 'This might trigger a bug in Safari which causes the View Transition to ' +
1381+ 'be skipped with a duplicate name error.\n' +
1382+ 'https://bugs.webkit.org/show_bug.cgi?id=290923' ,
1383+ parentTag . toLocaleLowerCase ( ) ,
1384+ childTag . toLocaleLowerCase ( ) ,
1385+ ) ;
1386+ } ,
1387+ instance . tagName ,
1388+ ( node : any ) . tagName ,
13801389 ) ;
13811390 break ;
13821391 }
You can’t perform that action at this time.
0 commit comments