chore: update deps and add TypeScript null safety checks

This commit is contained in:
2026-01-04 06:44:41 +00:00
parent d786a7463b
commit 619fcdb9ae
26 changed files with 3232 additions and 1581 deletions

View File

@@ -108,12 +108,12 @@ const trapFocus = (event: KeyboardEvent) => {
if (event.shiftKey) {
if (document.activeElement === firstElement) {
event.preventDefault()
lastElement.focus()
lastElement?.focus()
}
} else {
if (document.activeElement === lastElement) {
event.preventDefault()
firstElement.focus()
firstElement?.focus()
}
}
}