DateField documentation page crashes with undefined `ariaLabel` in EditableSegment
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 2.5k
- Fork
- 181
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Thinkmill/keystatic
-
Incorrect Dutch translations: “Save” is translated as “Redden”Forse già presa @MilindChatrabhuji l’ha presa 13 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Typo/Grammar on Website HomepageForse già presa @Punith1117 l’ha presa 158 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Array field: no visible edit button on rows and no close button in the "Edit item" dialogForse già presa @bacarndiaye l’ha presa 19 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 35/100
-
Feature: post-save "publishing" notice / `onCommit` hook so editors know changes aren't live yetAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
Tutte le issue di Thinkmill/keystatic
Issue simili
-
FR: Support CJK brackets, symbols and full-width markers in footnoteHeuristics (EBPAJ support)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
readest/readest#7413 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
content triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eliasstravik/herdr-projects#788 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Ability to edit tagsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno