chore(portal,operator): upgrade to Nuxt 4
Upgrade both Nuxt apps to Nuxt 4.4.6 (vue-tsc 3, TypeScript 5.6, undici 7) and add a root tsconfig.json to each app. Fix the strict-null / noUncheckedIndexedAccess errors surfaced by Nuxt 4's stricter generated tsconfig and vue-tsc 3. Drop the nuxt-oidc-auth pnpm patch (Nuxt 4 fixes the prepare:types crash natively).
This commit is contained in:
@@ -209,9 +209,10 @@ function onKey(e: KeyboardEvent) {
|
||||
activeIndex.value = Math.max(activeIndex.value - 1, 0)
|
||||
scrollActiveIntoView()
|
||||
} else if (e.key === 'Enter') {
|
||||
if (activeIndex.value >= 0 && filtered.value[activeIndex.value]) {
|
||||
const sel = filtered.value[activeIndex.value]
|
||||
if (activeIndex.value >= 0 && sel) {
|
||||
e.preventDefault()
|
||||
selectCountry(filtered.value[activeIndex.value])
|
||||
selectCountry(sel)
|
||||
}
|
||||
} else if (e.key === 'Escape') {
|
||||
open.value = false
|
||||
|
||||
Reference in New Issue
Block a user