Open Olliwehr opened 4 months ago
Hi @Olliwehr!
Thanks for submitting this issue with a corresponding PR. We have a ticket in our backlog to fix this; with the new modular UI the tab panel can live either on the left side, or the right side, so we are creating a new API specific to the new abstraction of the modular Tab Panel.
We will also review your solution in the open PR, as it may provide a stop-gap solution while we roll out the new API. I'll update this ticket when we have a closer look.
Thanks for submitting this and testing out the new modular UI!
When calling
instance.UI.setActiveLeftPanel
in combination with the modular UI, I encountered some strange behaviour.WebViewer version
The current behavior There are no changes in regard to the active panel, not just when calling it with "thumbnailsPanel" but any other (valid) panel of yours.
Also, the browser console shows the following warning:
The expected behavior
Steps to reproduce Call
instance.UI.setActiveLeftPanel("thumbnailsPanel")
and take a look at the browser consoleSolution Idea I had a look at the code (
./src/helpers/isDataElementLeftPanel.js
) and noticed that it would probably only require the following change:instead of
as you filter for inclusion of concrete data-elements afterwards.