[WIP] Focus share link when pop-up opens

Fixes #1673 by waiting for the dropdown to open and then selecting and focusing input.

- [ ] Needs tests.
Good catch. But since it isn't really a dropdown maybe we should just put a little close button in it and move on. What do you think?