diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-03 18:23:26 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-03 18:23:26 +0100 |
| commit | e0e4c650f353cbfe5a7982bb39f4e393d42ef7cf (patch) | |
| tree | 79402f4c374ff70c2f72ba55d5de51bd06d5a0f1 /animism-align/frontend/app/views/viewer/transcript/components | |
| parent | 3684497c695edb23748d007564a3a6f8c46b403c (diff) | |
clicking sentences in transcript advances to that sentence
Diffstat (limited to 'animism-align/frontend/app/views/viewer/transcript/components')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js b/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js index 6b73087..4054ad0 100644 --- a/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js +++ b/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js @@ -30,7 +30,7 @@ export const Paragraph = ({ paragraph, currentParagraph, currentAnnotation, onAn <span key={annotation.id} className={annotation.id === currentAnnotation ? 'current' : ''} - onClick={e => onAnnotationClick(e, paragraph, firstAnnotation)} + onClick={e => onAnnotationClick(e, paragraph, annotation)} dangerouslySetInnerHTML={{ __html: ' ' + annotation.text + ' ' }} /> ) |
