Issue #869πŸ’¬ AnsweredOpened February 14, 2018by ryandeba0 reactions

Should traits be disabled / hidden when no component is selected?

Quick answerby artf

Should there be a message in the traits panel similar to the one in the styles panel? I'm would be glad to add such a functionality

Read full answer below ↓

Question

The style manager seems to have a nice solution for when no component is selected by showing a "Select an element before using Style Manager" message, but the trait manager does not. This is pretty easily seen in the newsletter demo:

  • Select any component
    • Toggling between the style and trait panel works as expected
  • Delete the selected component
    • The style panel options are hidden and replaced with a friendly message πŸ‘
    • The trait panel is still populated with the traits from the (now deleted) component πŸ˜•

I'd be happy to work on a pull request to make this better, but I'm not sure what the desired behavior is... Should there be a message in the traits panel similar to the one in the styles panel?

Answers (2)

artfβ€’ February 18, 2018

Should there be a message in the traits panel similar to the one in the styles panel?

I'm would be glad to add such a functionality

lock[bot]β€’ September 18, 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.