From 34702c534a746398a40669548856e9ac70777bd8 Mon Sep 17 00:00:00 2001 From: jdevinemt <65512359+jdevinemt@users.noreply.github.com> Date: Tue, 7 Feb 2023 14:18:48 -0700 Subject: [PATCH] 'inline' attribute null value fix Applies to #201 --- iconify-icon/icon/src/component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iconify-icon/icon/src/component.ts b/iconify-icon/icon/src/component.ts index 372eb48..8993759 100644 --- a/iconify-icon/icon/src/component.ts +++ b/iconify-icon/icon/src/component.ts @@ -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'); + } } /**