christophhalbi
christophhalbi
@damithc Thx! That looks great, I'll have a look.
Seems like a timing issue to me - checking containerNodeRef.current in init before ref is set in render
Solution for me was to overwrite PdfHighlighter and add a little timeout to overcome the timing-issue. https://gist.github.com/christophhalbi/40ce155e2bc326a1effafe746635a04a
Maybe by just allowing an optional property color in Props.