Issue #2711Opened April 14, 2020by mydeenferozkhans1 reactions

Disable focus of panel view container on selected element in editor

Question

Hi i am using grapejs for our project and my editor design is below. My question is how to stop autofocus panel views container. it only show when i click the panel buttons. It always open when we drop a element to canvas or click a element in canvas. image

Answers (1)

Ju99ernautApril 16, 20201 reactions

When you select a component in the canvas

editor.on('component:selected', () => {
  //unfocus panel
});

When you start dragging a block onto the canvas

editor.on('block:drag:start', () => {
  //unfocus panel
});

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.