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.

[Bug] Cannot extend MUTABLE entity range in v0.10.5, works in v0.10.4 #1642

Closed
@alexlatchford

Description

@alexlatchford

What is the current behavior?

In v0.10.5 if you place the cursor at the end of a MUTABLE entity and type it does not expand the entity range. If you type in the middle it does.

v0 10 5

Check the behaviour of the "Batman" entity in the entity example: https://github.com/facebook/draft-js/blob/master/examples/draft-0-10-0/entity/entity.html

What is the expected behavior?

In v0.10.4 if you type at the end or the middle of the entity range it expands the entity range. This is the desired behaviour I'm looking for.

v0 10 4

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

Broken in > v0.10.5 and in current master. Works fine in v0.10.4 and below I think.


I've had a quick look through the commit range for v0.10.4...v0.10.5 but nothing immediately jumps out at me.

Not pressing I've just reverted to v0.10.4 for the meantime.

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