CYS - fix warning Tooltip (#45592)

* CYS - fix warning

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Luigi Teschio 2024-03-15 17:28:47 +01:00 committed by GitHub
parent 6016aad6c2
commit e5d33df9ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -25,7 +25,11 @@ import Iframe from './iframe';
const WithToolTip = ( { showTooltip, title, children } ) => {
if ( showTooltip ) {
return <Tooltip text={ title }>{ children }</Tooltip>;
return (
<Tooltip text={ title }>
<span>{ children }</span>
</Tooltip>
);
}
return <>{ children }</>;
};

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
CYS - fix warning Tooltip