Set focus on a input control contained in a second level bootstrap modal
问题 I'm using Vue.js 2.1.10 and Bootstrap 3.3.7 to show a modal that opens another modal dialog. Each modal dialog is contained in a distinct component. Inside the 1st component, there is a reference to the 2nd component ( select-travler ). According to the Bootsrap documentation, I have to set the focus by listening to the event shown.bs.modal . This works great to set the focus on an input control contained in the 1st modal. Problem: this way doesn't work when the modal is above another modal.