Skip to content

Commit

Permalink
Merge pull request #1615 from SenseNet/1614/fix/custom-svg-icon
Browse files Browse the repository at this point in the history
Fix custom icon won't disappear on select
  • Loading branch information
matekissdev committed May 15, 2024
2 parents 31693a8 + c53df2e commit a4c24e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sensenet/src/components/IconFromPath.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const IconFromPath = ({ path, options }: { path: string; options: IconOptions })
}

if (path.endsWith('.svg')) {
return <span dangerouslySetInnerHTML={{ __html: icon }} />
return <span dangerouslySetInnerHTML={{ __html: icon }} style={options.style} />
}

return <img src={icon} alt="icon" style={options.style} />
Expand Down

0 comments on commit a4c24e0

Please sign in to comment.