You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to focus on the content of a Panel (we are opening the panel from a sidebar).
When clicking on a sidebar item, the panel does not get focused.
I would appreciate it if you could provide some information about the focus provided by the API or another approach I should consider to be able to focus on the content of a panel when the panel is active.
Open the Console.
Click the Create live expression button (it looks like an eye icon).
In the text box that appears, type document.activeElement.
Now click/tab around the page and see the live expression update to reflect which element is currently focused.
Thanks!
The text was updated successfully, but these errors were encountered:
@mathuo thanks for your work!
Just a note, I have being using the onDidActiveChange event. I found an issue, when having a couple of panels in a group, when moving one panel to another group, the event on the listener gives you the wrong active panel.
Here is a codesanbox, Panel 2 is active, if you move Panel 2 out of the group, the Panel 1 event listener says that the panel 1 is active for a bit before setting it to false.
@mathuo the updated fixed the issue regards moving the groups thanks!!!
But the focus method on panel (like mentioned on the first message here) still does not seems to be do what it says (focus the panel), is this intentional?
Hello!
First of all, thanks for the lib!
I am trying to focus on the content of a Panel (we are opening the panel from a sidebar).
When clicking on a sidebar item, the panel does not get focused.
I would appreciate it if you could provide some information about the focus provided by the API or another approach I should consider to be able to focus on the content of a panel when the panel is active.
Codesandbox
To check what element is active dynamically:
Thanks!
The text was updated successfully, but these errors were encountered: