title: Is it possible to show an Ant Design Tooltip conditionally only when the content has ellipsis?
body: <p>I'm using the Ant Design component <code>&lt;Paragraph&gt;</code> to show a text with a variable size, and I use the ellipsis option to show "..." when that text exceeds the length of its container.</p>
  
  <p>I also added a <code>&lt;Tooltip&gt;</code> to that <code>&lt;Paragraph&gt;</code> to show the entire text when it is collapsed:</p>
  
  <pre><code>&lt;Tooltip title="This text is displayed, so I don't want to show a tooltip."&gt;
    &lt;Paragraph ellipsis&gt;
      This text is displayed, so I don't want to show a tooltip.
    &lt;/Paragraph&gt;
  &lt;/Tooltip&gt;
  </code></pre>
  
  <p>Unfortunately, I can't find a way to know when the ellipsis appears on the paragraph, so my Tooltip is always shown.</p>
  
  <p><a href="https://i.stack.imgur.com/t6Uz8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t6Uz8.jpg" alt="tooltip-shows-on-a-fully-displayed-text"></a></p>
  
  <p>Is it possible to show an Ant Design Tooltip only when the content has been affected by the ellipsis option?</p>