Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

convertFromHTML breaks after converting \n string #1822

@yury-sannikov

Description

@yury-sannikov

Do you want to request a feature or report a bug?
I want to report a bug

What is the current behavior?
After a call to the convertFromHTML('\n') another call to the convertFromHTML, for instance convertFromHTML('<h1>H</h1>') return unstyled block type.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
https://jsfiddle.net/m6z0xn4r/1190/

What is the expected behavior?
Call to the convertFromHTML should be idempotent.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
0.10.5 (latest)

Metadata

Metadata

Assignees

No one assigned

    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