Skip to content

Suport label for multi select field #2092

Open
@luiz290788

Description

@luiz290788

Is your feature request related to a problem? Please describe.

The multi select fields does not display the title of the field as label.

oneOfMultiEnum: {
  type: 'array',
  uniqueItems: true,
  title: 'select all that apply'
  items: {
    oneOf: [
      { const: 'foo', title: 'My Foo' },
      { const: 'bar', title: 'My Bar' },
      { const: 'foobar', title: 'My FooBar' }
    ]
  }
}

The label "select all that apply" is not displayed in the form. Even if I enforce the label in the ui schema it does not work.

I was able to achieve that if I wrap my control in a group, but that gives more emphasis in the group title than I wish it would. I want the label to be in the same format as the other labels are.

Describe the solution you'd like

Display the title as label as it would for the other fields automatically without any extra configuration.

Describe alternatives you've considered

I'm fine with it being a opt-in feature.

Framework

React

RendererSet

Material

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions