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,
},
],
}),

Answers (3)
@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:
- Drag a component into canvas
- Select the component and click settings button to check the traits
- Select trait is displayed as input. In dev tool console some warnings are shown
Hi @artf
This issue is still there. When will this be fixed?
[Traits]: 'select' type not found {level: 'warning'}
OK . Sure. Thanks. For information, this issue does not exist on 0.17.22
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1435
[BUG] - Checkbox Traits are not rendered correctly
Checkbox type traits are not getting shown as "checked" in the component settings. To reproduce:Import markupSelect the input element in th...
Issue #1579
Border Color Issue
@artf There is bug in the border color if you drag a button on the editor and paste color like rgb(255, 0, 0) in border color and select an...
Issue #2359
Absolute mode, component's style missing when dragged into canvas
Hi guys, I'm working with grapesjs which version is '0.15.8', and in 'absolute' mode when I drag a block into canvas, I find the styles of...
Issue #1290
[BUG]Set href for link block not editable once initialized
#1277 is closed but issue still exist so i have to post as new issue Thank you for the help for earlier @maryia-kabash @artf I have made a...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.