Issue #2711💬 AnsweredOpened April 14, 2020by mydeenferozkhans1 reactions

Disable focus of panel view container on selected element in editor

快速解答by Ju99ernaut1

When you select a component in the canvas When you start dragging a block onto the canvas

Read full answer below ↓

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, 2020

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

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.