Skip to content

[BUG] Label for "select" field is not clickable with hasMany=true #170

Description

@MurzNN

Describe the bug
When the "select" field has a single option, I can click on the label to set focus, but this stops working if I set hasMany=true

To Reproduce
Here is a code:

const categoryOptions = [
  {
    value: "technical",
    label: "Technical Issue",
  },
  {
    value: "billing",
    label: "Billing & Payments",
  },
  {
    value: "account",
    label: "Account",
  },
  {
    value: "feature",
    label: "Feature Request",
  },
];

const schema = defineSchema({
  fields: [

    {
      type: "select",
      name: "categories",
      label: "Categories",
      required: true,
      hasMany: true,
      options: categoryOptions,
      placeholder: "Choose categories...",
    },
  ],
});

Expected behavior
It should work as with single select.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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