From 3e5ee422cea92dd091c99b64c2faa2a8d8dab489 Mon Sep 17 00:00:00 2001 From: khushalchandak17 Date: Fri, 29 May 2026 14:39:13 +0530 Subject: [PATCH] fix(console): defer window.open to prevent dropdown staying open in Firefox (#890) Signed-off-by: khushalchandak17 --- pkg/harvester/components/VMConsoleBar.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkg/harvester/components/VMConsoleBar.vue b/pkg/harvester/components/VMConsoleBar.vue index d6a3cca2..04d2b179 100644 --- a/pkg/harvester/components/VMConsoleBar.vue +++ b/pkg/harvester/components/VMConsoleBar.vue @@ -58,11 +58,14 @@ export default { const url = `https://${ host }${ prefix }/${ PRODUCT_NAME }/c/${ params.cluster }/console/${ uid }/${ type }`; - window.open( - url, - '_blank', - `toolbars=0,width=${ screen.width - 200 },height=${ screen.height - 200 },left=0,top=0,noreferrer` - ); + // Defer so v-select can finish closing the dropdown before the popup steals focus + this.$nextTick(() => { + window.open( + url, + '_blank', + `toolbars=0,width=${ screen.width - 200 },height=${ screen.height - 200 },left=0,top=0,noreferrer` + ); + }); }, isEmpty(o) {