Issue #3735Opened August 30, 2021by codingmachine163 reactions

BUG: Select options are not displaying. Rather displaying as input

Question

Hi @artf,

We are using select options as Traits but these are displaying as input. sometimes theese display options and sometimes displaying as input . Our code is below

    defaults: Object.assign({}, defaultModel.prototype.defaults, {
      traits: [
        {
          label: "Categories",
          name: "noOfCategories",
          id: "noOfCategories",
          type: "select",
          options: [
            {
              id: "0",
              name: "None",
            },

            {
              id: "1",
              name: "1",
            },
            {
              id: "2",
              name: "2",
            },
            {
              id: "3",
              name: "3",
            },
            {
              id: "4",
              name: "4",
            },
            {
              id: "5",
              name: "5",
            },
            {
              id: "6",
              name: "6",
            },
            {
              id: "7",
              name: "7",
            },
            {
              id: "8",
              name: "8",
            },
            {
              id: "9",
              name: "9",
            },
            {
              id: "10",
              name: "10",
            },
          ],
          changeProp: 1,
        },
        {
          label: "Links",
          name: "noOfLinks",
          id: "noOfLinks",
          type: "select",
          options: [
            {
              id: "0",
              name: "none",
            },
            {
              id: "1",
              name: "1",
            },
            {
              id: "2",
              name: "2",
            },
            {
              id: "3",
              name: "3",
            },
            {
              id: "4",
              name: "4",
            },
          ],
          changeProp: 1,
        },
      ],
    }),

image

Answers (3)

YumiChenSeptember 3, 20211 reactions

@artf Just to add that we bumped into this these 2 days as well. This seems only happen to version 0.17.25. Following is Jsfiddle for reproducing the issue, if needed please check: https://jsfiddle.net/a29h7twy/5/

Reproduce step:

  1. Drag a component into canvas
  2. Select the component and click settings button to check the traits
  3. Select trait is displayed as input. In dev tool console some warnings are shown
codingmachine16September 15, 20211 reactions

Hi @artf

This issue is still there. When will this be fixed?

[Traits]: 'select' type not found {level: 'warning'}

codingmachine16September 16, 20211 reactions

OK . Sure. Thanks. For information, this issue does not exist on 0.17.22

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.