Safeguard the focus setting to not crash if view is changed quickly
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user