Commit 8926f5fb authored by severn101's avatar severn101 Committed by Cole Bemis

fix: Fix adding unwanted class 'null'

parent f72c5dd2
...@@ -41,7 +41,7 @@ function replaceElement(element, options) { ...@@ -41,7 +41,7 @@ function replaceElement(element, options) {
return; return;
} }
const elementClassAttr = element.getAttribute('class'); const elementClassAttr = element.getAttribute('class') || '';
const classNames = ( const classNames = (
options.class ? `${options.class} ${elementClassAttr}` : elementClassAttr options.class ? `${options.class} ${elementClassAttr}` : elementClassAttr
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment