Skip to content

[EuiCodeEditor] does not work well with EuiFormRow to assign a label #2961

@myasonik

Description

@myasonik

When using EuiCodeEditor inside of EuiFormRow there is no convenient way to assign a an id to the textarea.

In places Kibana has started to shim this after render but inconsistently and in Kibana probably isn't the best place to do this anyway.

Example of what I mean: editor_example.tsx#L34-L45

I'm not sure what the best solution is here because I know EuiCodeEditor has its hands tied by react-ace a little. Will probably need to explore if the best solution can be implemented in EuiCodeEditor or in EuiFormRow.

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