2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-12 13:47:49 +00:00

'inline' attribute null value fix

Applies to #201
This commit is contained in:
jdevinemt 2023-02-07 14:18:48 -07:00 committed by GitHub
parent 0dbc5da8b3
commit 34702c534a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,11 @@ export function defineIconifyIcon(
}
set inline(value: boolean) {
this.setAttribute('inline', value ? 'true' : null);
if(value){
this.setAttribute('inline', 'true');
}else{
this.removeAttribute('inline');
}
}
/**