exercism / exercism/website

TypeError: Cannot read properties of undefined (reading 'focus')

Open
#9,456 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
548
Forks
168
Avg merge
1d 3h
Merged PRs (30d)
28

Description

## Error

```
Cannot read properties of undefined (reading 'focus')
```

## Stack trace

```
../app/javascript/components/dropdowns/Reputation.tsx:95 in Reputation
div
Suspense
../node_modules/@sentry/react/src/errorboundary.tsx:101 in new ErrorBoundary
../node_modules/@tanstack/react-query/src/QueryClientProvider.tsx:30 in QueryClientProvider
```

## Tracking Details
- **Project**: exercism-js
- **Sentry**: [TypeError: Cannot read properties of undefined (reading 'focus')](https://thalamus-ai.sentry.io/issues/144192628/)
- **Culprit**: d(app/javascript/components/dropdowns/useDropdown)
- **First seen:** Sep 1, 2026

Contributor guide

Open the contributing guide

Research direction

Start at app/javascript/components/dropdowns/Reputation.tsx:95 and trace the focus call through app/javascript/components/dropdowns/useDropdown. Use the linked Sentry issue and stack trace to identify when the focus target is undefined. Done means the reported TypeError no longer occurs in the Reputation dropdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.