fix(modal): refocus onto [autofocus] elements if any

Opening a modal window using the directive causes input elements inside the modal to lose focus. This refocuses them if any exist in the modal