Issue #2074Opened June 11, 2019by VM81980 reactions

Can not use space while editing drop down menu in block manager

Question

hello @artf I have applied a drop down menu in block manager the code is given below

bm.add("dropdown-menu-in-navbar",
        {
          label: '<div class="gjs-block-label">Dropdown Menu</div>',
          tab: "1",
          category: "Others",
          removable: true,
          draggable: true,
          droppable: true,
          highlightable: true,
          copyable: true,
          editable: true,
          allowSpacing: true,
          type: "default",
          attributes: {
            class: 'fa fa-ellipsis-h',
            title: 'Insert Dynamic Menu of Navigation'  
          },
          content: '<div data-gjs-type="default" class="dropdown"> <span class="dropdown-text">Dropdown </span> <div data-gjs-type="default" data-gjs-editable="true" class="dropdown-menu"> <a href="index.html"> Dropdowm 1 </a> </div> </div>'
        }
      );

It works fine but whenever I try to change the dropdown lists it doesn't applies space. It takes all letters but space is ignored by the editor please help

Answers (3)

verdvermJune 13, 20190 reactions

Try looking at the DOM to see what your drop-down item in the canvas to see what html elements are created. Does that output look like the html you expect?

artfJune 15, 20190 reactions

Not able to reproduce with your code, create a reproducible demo, please. BTW properties like removable, draggable, droppable are part of the component definition, not blocks...

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.