Skip to content

Validate component ID in the new "add component" modal #14874

Open
@nkylstad

Description

@nkylstad

Description of the bug

We should check that we validate the component ID, so that users cannot create a component with invalid ID.
We should first test if we are doing this and if it's working as expected.

We do not validate component ID. We should add component ID validation.

Steps To Reproduce

  1. Navigate to ui-editor. Ensure that the featureFlag addComponentModal is on.
  2. Add a new component and click the "show all" button
  3. Select a component and edit the suggested component ID
  4. type f.ex. "input-12", which is invalid
  5. See that no validation message is triggered, onChange or onBlur.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugUsed when there is a defect / something is not working as it should.status/triage

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions