grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

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

Open ryandeba opened this issue 8 years ago • 2 comments

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?

ryandeba avatar Feb 14 '18 18:02 ryandeba

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

artf avatar Feb 18 '18 14:02 artf

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.

lock[bot] avatar Sep 17 '19 21:09 lock[bot]