So, in the popUp service, this code causes the effect:
function focusInputOrButton(element) {
var inputs = element[0].querySelectorAll('input');
if (!inputs.length) {
inputs = element[0].querySelectorAll('button');
}
var last = inputs[inputs.length-1];
if(last) {
last.focus();
}
}
If there are no inputs, a button is focused… If there are inputs, the LAST input is focused.
I’ll open a PR to see if that can be fixed.