Skip to content

The Inline Image format opens two media modals in development mode #62105

@Mamaduka

Description

@Mamaduka

The "Inline Image" format opens two media modals. It calls the modal open method directly in the MediaUpload.render prop. It is a hack to emulate modal opening on a click, but React will call the class component methods like render twice in development. See: #61943.

Affected e2e tests

  • editor/various/adding-inline-tokens.spec.js - should insert inline image.

Steps to reproduce

Metadata

Metadata

Assignees

Labels

[Feature] MediaAnything that impacts the experience of managing media[Package] Format library/packages/format-library[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions