Skip to content

Click to mention has regressed #6900

@lukebarnard1

Description

@lukebarnard1

Clicking on a SenderProfile (displayname above message) should insert a pill into the composer. This has regressed with an error message (when the composer is empty):

Uncaught TypeError: Cannot read property 'getEntityAt' of undefined
    at Object.removeRange (DraftModifier.js:100)
    at removeTextWithStrategy (removeTextWithStrategy.js:39)
    at keyCommandPlainDelete (keyCommandPlainDelete.js:27)
    at onKeyCommand (editOnKeyDown.js:46)
    at editOnKeyDown (editOnKeyDown.js:141)
    at DraftEditor.react.js:146
...

If the composer has text in it, it appears to insert whitespace but when switching between rich mode and markdown mode, markdown pills might appear. Or the composer might be broken until a room switch happens.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions