Skip to content

Commit c9112c3

Browse files
committed
Rerender on slot change.
1 parent 4f71eaf commit c9112c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ColorPicker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ export class ColorPicker extends LitElement {
119119
}
120120
});
121121
return html` ${bootstrap}
122-
<slot class="d-flex flex-row flex-wrap main-container"> </slot>`;
122+
<slot class="d-flex flex-row flex-wrap main-container"
123+
@slotchange=${this.render}
124+
> </slot>`;
123125
}
124126
}

0 commit comments

Comments
 (0)