@@ -414,10 +414,12 @@ export function useAutoTooltip({
414414 tooltip,
415415 children,
416416 labelProps,
417+ isDynamicLabel = false , // if actions are set
417418} : {
418419 tooltip : CubeItemBaseProps [ 'tooltip' ] ;
419420 children : ReactNode ;
420421 labelProps ?: Props ;
422+ isDynamicLabel ?: boolean ;
421423} ) {
422424 // Determine if auto tooltip is enabled
423425 // Auto tooltip only works when children is a string (overflow detection needs text)
@@ -551,12 +553,15 @@ export function useAutoTooltip({
551553
552554 // Boolean tooltip - auto tooltip on overflow
553555 if ( tooltip === true ) {
554- if ( children || labelProps ) {
556+ if (
557+ ( children || labelProps ) &&
558+ ( isLabelOverflowed || isDynamicLabel )
559+ ) {
555560 return (
556561 < TooltipProvider
557562 placement = { defaultTooltipPlacement }
558563 title = { children }
559- isDisabled = { ! isLabelOverflowed }
564+ isDisabled = { ! isLabelOverflowed && isDynamicLabel }
560565 >
561566 { ( triggerProps , ref ) => renderElement ( triggerProps , ref ) }
562567 </ TooltipProvider >
@@ -581,13 +586,18 @@ export function useAutoTooltip({
581586 }
582587
583588 // If title is provided with auto=true, OR no title but auto behavior enabled
584- if ( children || labelProps ) {
589+ if (
590+ ( children || labelProps ) &&
591+ ( isLabelOverflowed || isDynamicLabel )
592+ ) {
585593 return (
586594 < TooltipProvider
587595 placement = { defaultTooltipPlacement }
588596 title = { tooltipProps . title ?? children }
589597 isDisabled = {
590- ! isLabelOverflowed && tooltipProps . isDisabled !== true
598+ ! isLabelOverflowed &&
599+ isDynamicLabel &&
600+ tooltipProps . isDisabled !== true
591601 }
592602 { ...tooltipProps }
593603 >
@@ -753,7 +763,12 @@ const ItemBase = <T extends HTMLElement = HTMLDivElement>(
753763 labelProps : finalLabelProps ,
754764 labelRef,
755765 renderWithTooltip,
756- } = useAutoTooltip ( { tooltip, children, labelProps } ) ;
766+ } = useAutoTooltip ( {
767+ tooltip,
768+ children,
769+ labelProps,
770+ isDynamicLabel : ! ! actions ,
771+ } ) ;
757772
758773 // Create a stable render function that doesn't call hooks
759774 const renderItemElement = useCallback (
0 commit comments