-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Description
Please answer the following questions for yourself before submitting an issue
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
- I'm reporting the issue to the correct repository
Description
Using the shell function activateById
on a side panel widget may result to the opposite behavior, if the widget was already opened.
It may be related to #7178.
AFAIU the PR, if the id is provided and the current widget has this ID (it is opened), the expand
will collapse the panel.
Reproduce
Hard to reproduce, it needs a extension that provide a sidepanel, and which call the shell.activateById
on this sidepanel when it opened.
See context to reproduce it.
Expected behavior
The sidepanel to remain opened.
Context
Found when testing jupyterlab_chat.
This line is used to ensure that the sidepanel is open, but the sidepanel is collapsed instead.
cc. @haok1402