fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

TooltipHost : <div> cannot appear as a descendant of <p>

Open vorobievik opened this issue 5 years ago • 2 comments

Hi. in my case the TooltipHost is a child of the paragraph (I am using the wysiwyg editor), so I have an error in the console. <div> cannot appear as a descendant of <p> , how this can be fixed? Is there any means to change div tag for TooltipHost Actual behavior: https://codepen.io/vorobievik/pen/LYxLMmd we have an error in the console

vorobievik avatar Apr 05 '21 17:04 vorobievik

Right now there's not a way to customize which element the TooltipHost renders as, but I can see how that might be helpful in certain situations. One approach would be adding a prop as?: 'div' | 'span' (and possibly other elements if they make sense). Or it might be possible to change it to use a <span> by default, but that would require more investigation to verify it wouldn't break anything else.

ecraig12345 avatar May 06 '21 21:05 ecraig12345

Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

msft-fluent-ui-bot avatar May 12 '22 10:05 msft-fluent-ui-bot