Skip to content

Typing "/devtools" results in a draft error #6436

Closed
matrix-org/matrix-react-sdk
#1961
@turt2live

Description

@turt2live

Description

Uncaught DOMException: Failed to execute 'extend' on 'Selection': This Selection object doesn't have any Ranges.
    at addFocusToSelection (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:189960:18)
    at setDraftEditorSelection (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:189896:6)
    at DraftEditorLeaf._setSelection (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:185882:6)
    at DraftEditorLeaf.componentDidMount (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:185896:11)
    at https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:315412:26
    at measureLifeCyclePerf (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:315223:13)
    at https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:315411:12
    at CallbackQueue.notifyAll (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:122028:23)
    at ReactReconcileTransaction.close (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:320251:27)
    at ReactReconcileTransaction.closeAll (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:50051:26)
    at ReactReconcileTransaction.perform (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:49998:17)
    at ReactUpdatesFlushTransaction.perform (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:49985:21)
    at ReactUpdatesFlushTransaction.perform (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:16522:33)
    at Object.flushBatchedUpdates (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:16605:20)
    at ReactDefaultBatchingStrategyTransaction.closeAll (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:50051:26)
    at ReactDefaultBatchingStrategyTransaction.perform (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:49998:17)
    at Object.batchedUpdates (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:318626:27)
    at Object.batchedUpdates (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:16530:28)
    at dispatchEvent (https://riot.im/develop/bundles/87fb79895c26248100ed/bundle.js:318925:21)

Steps to reproduce

  • In the composer, type /devtools
  • Press enter

Version information

  • Platform: web (in-browser)
  • Browser: Chrome 65
  • OS: Windows 10
  • URL: riot.im/develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2S-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions