Skip to content

Pasting labels sometimes adds a Div element that is not present in the source of the copy #2447

Description

Describe the bug
Div is added under label on paste, should not happen

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://codepen.io/Bryanvalverdeu/pen/zYXOobZ
  2. copy content
  3. paste in ROosterJS Content model demo
  4. See that the label elements have a Div Wrapped causing the labels to have 2 lines

Expected behavior
Div should not be added

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions