lombardpress / lombardpress-webjs

0 stars 3 forks source link

word range not updating in textPreview when paragraph target is already loaded #69

Open jeffreycwitt opened 3 years ago

jeffreycwitt commented 3 years ago

When textPreview has already loaded a target paragraph with a given word range, if another link is selected which targets the same paragraph but with a different word range, the word range does not update.

THis is likely happening because the component update function is only calling an update when the target transcription id changes, but not when the word ranges changes.

This can probably be fixed with small change to the compondentDidUpdate function.

See the references in paragraph https://scta.lombardpress.org/#/text?resourceid=http://scta.info/resource/pg-b1q8-Qd1e1533/critical/transcription for an example.