Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty String in Array Causes Failure #199

Closed
jwk4946 opened this issue Mar 29, 2020 · 3 comments · Fixed by #200
Closed

Empty String in Array Causes Failure #199

jwk4946 opened this issue Mar 29, 2020 · 3 comments · Fixed by #200

Comments

@jwk4946
Copy link

jwk4946 commented Mar 29, 2020

if there is an empty string in array it causes the entire thing not to render

const myArr = ['', 'foo', 'bar'];
new TypeIt("#myElement", { strings: myArr }).go();

this does not work - it fails to render at all - but if you put a space in the 0th element it works as expected

@alexmacarthur
Copy link
Owner

thanks for reporting this! i'll check it out and aim for an update being ready tomorrow at some point.

@alexmacarthur
Copy link
Owner

Got to this earlier than expected. v7.0.1 fixes this issue. Thanks again for reporting.

@jwk4946
Copy link
Author

jwk4946 commented Mar 29, 2020

Thanks for responding and quick fix. Stay safe!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants