fix(console): defer window.open to prevent dropdown staying open in Firefox (#890)

Signed-off-by: khushalchandak17 <khushal.chandak@suse.com>
This commit is contained in:
khushalchandak17 2026-05-29 14:39:13 +05:30 committed by GitHub
parent 75202a9e55
commit 3e5ee422ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {