Safeguard the focus setting to not crash if view is changed quickly

This commit is contained in:
Johannes Zellner
2025-04-28 15:49:20 +02:00
parent aa46285b8f
commit 384e341452

View File

@@ -86,7 +86,12 @@ onMounted(async () => {
console.error('No such version found');
}
} else {
setTimeout(() => searchInput.value.$el.focus(), 100);
setTimeout(() => {
try {
searchInput.value.$el.focus();
// eslint-disable-next-line no-unused-vars
} catch(e) {;}
}, 100);
}
proxyApp.value = await getApp(PROXY_APP_ID);