Skip to content

dangerouslySetInnerHTML doesn't properly reconcile #377

@vjeux

Description

@vjeux

@sbezboro reported the following issue on IRC:

http://jsfiddle.net/vjeux/8vZ57/1/ (Both on master and 4.0)

The repro case is:

  1. Render <div dangerouslySetInnerHTML={{__html: '<b>HTML</b>'}} />
  2. Render <div>Text</div>
  3. Render the same as 1)

The div has its innerHTML empty instead of <b>HTML</b>.

I don't really know what's going on. @jordwalke, @petehunt can you guys look at it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions