mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
fix: Fix adding unwanted class 'null'
This commit is contained in:
parent
f72c5dd215
commit
8926f5fb9b
@ -41,7 +41,7 @@ function replaceElement(element, options) {
|
||||
return;
|
||||
}
|
||||
|
||||
const elementClassAttr = element.getAttribute('class');
|
||||
const elementClassAttr = element.getAttribute('class') || '';
|
||||
const classNames = (
|
||||
options.class ? `${options.class} ${elementClassAttr}` : elementClassAttr
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user