DateField documentation page crashes with undefined `ariaLabel` in EditableSegment
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Start with InputSegment.tsx and useDateSegment.ts, especially the EditableSegment destructuring and the hookData.get(...) call mentioned in the report. Reproduce the exception on the DateField documentation page and trace why that lookup returns undefined; the script-tag warning may be related, but the issue does not confirm that. Done when the page renders without the runtime exception.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
I encountered a runtime error while accessing the DateField documentation page.
Affected page:
https://keystar.design/package/date-time/date-field
Steps to reproduce
- Start the documentation project locally.
- Navigate to the DateField documentation page.
- Observe the browser console.
Actual behavior
The following warning appears:
Encountered a script tag while rendering React component.
Scripts inside React components are never executed when rendering on the client.
Consider using template tag instead.
This is followed by a runtime exception:
useDateSegment.ts:52
Uncaught TypeError:
Cannot destructure property 'ariaLabel' of
hookData.get(...) as it is undefined.
at EditableSegment (InputSegment.tsx:54:40)
Expected behavior
The DateField documentation page should render without runtime exceptions.
Additional information
- Reproduced locally.
- The exception originates in
EditableSegmentinInputSegment.tsx. - The
hookData.get(...)call inuseDateSegment.tsreturnsundefined, causing destructuring to fail. - The relationship between the script-tag warning and the runtime exception is not yet confirmed.
I would like to investigate and work on a fix if this issue is not already being addressed.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.5k
- Forks
- 181
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Thinkmill/keystatic
-
Incorrect Dutch translations: “Save” is translated as “Redden”Posiblemente ocupada @MilindChatrabhuji la tomó hace 13 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Typo/Grammar on Website HomepagePosiblemente ocupada @Punith1117 la tomó hace 158 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
Array field: no visible edit button on rows and no close button in the "Edit item" dialogPosiblemente ocupada @bacarndiaye la tomó hace 19 días. Abierto
Dificultad 3/5 Medio día Aptitud para principiantes 35/100
-
Feature: post-save "publishing" notice / `onCommit` hook so editors know changes aren't live yetAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Todos los issues de Thinkmill/keystatic
Issues similares
-
FR: Support CJK brackets, symbols and full-width markers in footnoteHeuristics (EBPAJ support)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
readest/readest#7413 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
content triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
eliasstravik/herdr-projects#788 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Ability to edit tagsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día