Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of null (reading 'value') - in VHeaderMobile #5190

Open
sentry-io bot opened this issue Nov 27, 2024 · 0 comments · May be fixed by #5193
Open

TypeError: Cannot read properties of null (reading 'value') - in VHeaderMobile #5190

sentry-io bot opened this issue Nov 27, 2024 · 0 comments · May be fixed by #5193
Assignees
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: frontend Related to the Nuxt frontend

Comments

@sentry-io
Copy link

sentry-io bot commented Nov 27, 2024

Sentry Issue: OPENVERSE-FRONTEND-2M1

TypeError: Cannot read properties of null (reading 'value')
  at Ve (/_nuxt/CUzydOfT.js:2:28607)
  at at (/_nuxt/CUzydOfT.js:2:29198)
  at Vc (/_nuxt/DEeMux8W.js:14:38)
  at gr (/_nuxt/DEeMux8W.js:14:109)
  at HTMLInputElement.n (/_nuxt/DEeMux8W.js:19:7561)
...
(1 additional frame(s) were not displayed)

Description

The searchInput seems to be null sometimes:

const updateSelection = () => {
const inputElement = searchInputRef.value as HTMLInputElement
const lastPos =
inputElement.value.length > 0 ? inputElement.value.length - 1 : 0
selection.value = {
start: inputElement.selectionStart ?? lastPos,
end: inputElement.selectionEnd ?? lastPos,
}
}

@openverse-bot openverse-bot moved this to 📋 Backlog in Openverse Backlog Nov 27, 2024
@obulat obulat added 🟩 priority: low Low priority and doesn't need to be rushed 🛠 goal: fix Bug fix 💻 aspect: code Concerns the software code in the repository 🧱 stack: frontend Related to the Nuxt frontend labels Nov 27, 2024
@openverse-bot openverse-bot moved this from 📋 Backlog to 🏗 In Progress in Openverse Backlog Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: frontend Related to the Nuxt frontend
Projects
Status: 🏗 In Progress
Development

Successfully merging a pull request may close this issue.

1 participant