Background
- When pinning and unpinning an element, the focus should automatically be placed on either the dropdown menu (in the case of clicking unpinning) or the "hide" button (in the case of clicking pinning). Right now it is not handling focus properly.
To reproduce:
- pin the Tools menu
- click the "hide" button
- go to console and log out document.activeElement
- see it is undefined
It should be set to the input element for the tools dropdown
Acceptance criteria
- Clicking the "move to sidebar" button places focus on the "hide" button
- Clicking the "hide" button places focus on the input element in the dropdown