diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-01 18:22:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-01 18:22:20 +0300 |
commit | 06f736847bb6a7f577a8f121f94e4cc7ddb51856 (patch) | |
tree | 900541f271b709007f2df1accc15a4956825281f /app/assets/javascripts/vue_shared/components/runner_instructions | |
parent | 7c9f5b5d627c9eb1a9791613a531122db9a1f81d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/runner_instructions')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/runner_instructions/runner_instructions_modal.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/runner_instructions/runner_instructions_modal.vue b/app/assets/javascripts/vue_shared/components/runner_instructions/runner_instructions_modal.vue index dcb98c2eede..94aa7bd2f88 100644 --- a/app/assets/javascripts/vue_shared/components/runner_instructions/runner_instructions_modal.vue +++ b/app/assets/javascripts/vue_shared/components/runner_instructions/runner_instructions_modal.vue @@ -155,7 +155,9 @@ export default { // get focused when setting a `defaultPlatformName`. // This method refocuses the expected button. // See more about this auto-focus: https://bootstrap-vue.org/docs/components/modal#auto-focus-on-open - this.$refs[this.selectedPlatform?.name]?.[0].$el.focus(); + this.$nextTick(() => { + this.$refs[this.selectedPlatform?.name]?.[0]?.$el.focus(); + }); }, selectPlatform(platform) { this.selectedPlatform = platform; |