This might be because you still have the original button element focused with the keyboard. This I believe is a bootstrap issue. I would suggest as a workaround you:
Make sure the element you want to have initially focused has an id (such as #defaultFocus).
On controller startup, use jQuery to find that element and focus is (such $('#defaultFocus).focus())
This might be because you still have the original button element focused with the keyboard. This I believe is a bootstrap issue. I would suggest as a workaround you:
#defaultFocus
).$('#defaultFocus).focus()
)