fix: clone props

This commit is contained in:
Nolan Lawson 2023-12-10 10:17:32 -08:00
parent c0f84fa9b4
commit f31aa59b4b
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ export default class PickerElement extends HTMLElement {
if (!this._cmp) {
this._cmp = createRoot(SveltePicker, {
target: this.shadowRoot,
props: this._ctx
// props must be cloned due to https://github.com/sveltejs/svelte/issues/9884
props: { ...this._ctx }
})
}
}