Skip to content

pf-tooltip component leaks internal slot content on copy-paste #2902

@tejas161

Description

@tejas161

Description of the issue

When copying text inside a section which includes the <pf-tooltip> component and pasting it into a rich text editor like Google Docs, internal content markup is included in the pasted content. This exposes component internals that users wouldn’t expect to see, which negatively impacts the user experience.

Impacted component(s)

  • <pf-tooltip>

Steps to reproduce

  1. Go to https://patternflyelements.org/components/tooltip/demo/
  2. Copy the text "A Tooltip is a piece of flow content with an associated secondary piece of hidden flow content."
  3. Paste it in Google Docs
  4. Observe the pf-tooltip content markup "floating UI element" also getting pasted in the google doc. See below attached image.

Expected behavior

The resulting pasted output should be:-
A Tooltip is a piece of flow content with an associated secondary piece of hidden flow content.

Screenshots

Image

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions