Issue #987💬 AnsweredOpened March 29, 2018by baxxos0 reactions

Dropdown indicator not displayed for a custom trait

Quick answerby nojacko

I think you have to override the CSS.

Read full answer below ↓

Question

Hello, the dropdown (select) element arrow indicator icon is not rendered when adding a custom trait to a component: I'm using following code to add the custom trait to the link component: Is there anything I'm missing? An extra attribute perhaps? Everything else works fine, except for this detail (which is apparently very important to my customer). I am currently on release 14.6 and I can't find a way how to force GrapesJS to render the dropdown indicator like it does for all default component traits (e. g. link target).

Answers (3)

nojackoMarch 29, 2018

I think you have to override the CSS.

.gjs-trt-trait .gjs-field .gjs-input-holder select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}
baxxosMarch 29, 2018

Successfully resolved via a "dirty hack" (overloading the initialize method) referenced here: #972

lock[bot]September 17, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.