refactor(popup): do not default to focus on first input

Instead of finding a popup element’s first input and focusing on it by
default, only look for the first input with the `autofocus` attribute
added.