Issue #1081Opened May 3, 2018by mmeeeooowww0 reactions

[BUG] - removePanel does not remove panels

Question

I'm trying to remove a panel. The function returns the panel the first time I run removePanel and then returns undefined if I run it again. It's worth noting that the panel is no longer returned when getting all panels, however it is still visible and functional. In my case I'm trying to remove the device selection buttons at the top left of the demo page but I did try to remove "options" and "views" as well with the same result.

Expected behavior: Executing editor.Panels.removePanel('devices-c'); should remove the device selection panel.

Current behavior: Executing editor.Panels.removePanel('devices-c'); does not remove the device selection panel.

image

Answers (3)

FrciSmrciMay 14, 20180 reactions

Hey @mmeeeooowww ,

the panels should be removed as discussed in this issue.

Have a great day.

mmeeeooowwwMay 14, 20180 reactions

Hi, @FrciSmrci I am using css to hide stuff at the moment. Am I misunderstanding the purpose of removePanel or am I using it incorrectly?

Thanks!

artfMay 18, 20180 reactions

I'll add a listener on this too

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.