yandom bugfix brought by svelte 3.15.0 - each index
This commit is contained in:
parent
8f77aefdc1
commit
5a2ffac934
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
export let containerClass = "";
|
|
||||||
export let formControls = [];
|
export let formControls = [];
|
||||||
|
|
||||||
export let _bb;
|
export let _bb;
|
||||||
|
@ -24,7 +24,7 @@ $ : {
|
||||||
_bb.insertComponent(
|
_bb.insertComponent(
|
||||||
_bb.props.formControls[el].control,
|
_bb.props.formControls[el].control,
|
||||||
htmlElements[el],
|
htmlElements[el],
|
||||||
labelElements[el]);
|
htmlElements[el].childNodes.find(n => n.tagName === "LABEL"));
|
||||||
} else {
|
} else {
|
||||||
_bb.appendComponent(
|
_bb.appendComponent(
|
||||||
_bb.props.formControls[el].control,
|
_bb.props.formControls[el].control,
|
||||||
|
@ -38,9 +38,9 @@ $ : {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form>
|
<form>
|
||||||
{#each formControls as child, index}
|
{#each formControls as child, idx}
|
||||||
<div class="form-group" bind:this={htmlElements[index]}>
|
<div class="form-group" bind:this={htmlElements[idx]}>
|
||||||
<label bind:this={labelElements[index]}>{labels[index]}</label>
|
<label>{labels[idx]}</label>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue