Unless you paste text that is already in XML form, this component crashes. For example, if you have a text area where users will enter text to be formatted as XML, the moment < is entered the component crashes with the error below.
index.es.js:2872 Uncaught TypeError: Cannot read property 'map' of undefined
at Elements (index.es.js:2872)
var Elements = function Elements(_ref2) {
var elements = _ref2.elements,
theme = _ref2.theme,
indentation = _ref2.indentation,
indentSize = _ref2.indentSize;
return elements.map(getElement(theme, indentation, indentSize));
};
Unless you paste text that is already in XML form, this component crashes. For example, if you have a text area where users will enter text to be formatted as XML, the moment < is entered the component crashes with the error below.