If "fixed" equals true then the text will not properly hide itself.
elvisgraho opened this issue · 4 comments
Problem:
If I add the parameter fixed = true, then the "invisible-string" is not hidden.
Quick fix
Change const invisibleStyle = { opacity: 0 } to const invisibleStyle = { opacity: 0, color: 'transparent' } in index.js
Hi @elvitos-peterson, thanks for letting me know. Feel free to open up a pull request!
Actually invisibleStyle = { color: 'transparent' } just works fine. I don't know if it is the best possible solution considering the fact that the 'transparency' is always performance heavy.
@elvitos-peterson I just published v0.6.0, which handles hiding the invisible substring a bit differently. Please try it out and let me know how it works for you.
@elvitos-peterson I'm going to close this for now. Feel free to re-open if you find it's still a problem.