We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274078f commit 8b6ee66Copy full SHA for 8b6ee66
src/pg/icon/icon.ts
@@ -20,7 +20,7 @@ export default class PgIcon extends HTMLElement {
20
if (changes.path) {
21
const viewBox = getComputedStyle(this).getPropertyValue('--pg-icon-viewbox');
22
this.$svg.setAttribute('viewBox', viewBox || '0 0 24 24');
23
- if (this.path) {
+ if (!this.path) {
24
throw new Error('invalid path set on pg-icon');
25
}
26
this.$path.setAttribute('d', this.path);
0 commit comments