Uncaught TypeError: Cannot read property 'concat' of null
at split-type.js:567
at Array.reduce (<anonymous>)
at splitSingleElement (split-type.js:512)
at split-type.js:875
at Array.forEach (<anonymous>)
at SplitType.split (split-type.js:872)
at new SplitType (split-type.js:839)
at pen.js:7
Description
SplitType fails with an error when the target element contains
<br>
tags. This only occurs when splitting text into both lines and words.Steps to reproduce
HTML
Javascript
Live example
Expected result
It should respect
<br>
tags when splitting text into lines. The above code should produce the following htmlActual result