Skip to content

EuiCodeBlock requires a DOM implementation when the component is created #3156

@pugnascotia

Description

@pugnascotia

EuiCodeBlockImpl in src/components/code/_code_block.tsx expects to be able to call document.createElement while the class instance is being constructed. This makes it impossible (from a practical POV) to use in the Next starter. This component should only be creating DOM nodes in an appropriate lifecycle function.

Metadata

Metadata

Assignees

No one assigned

    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