You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Insert dynamically an input item without a value before an existing item with a value, it transmits the value from the old component position to the new.
But only when spreading restProps at the input-element.
Click the button and it inserts at position 1 (between the 2 inputs) a new input.
This input did not has a value, so it should display undefined, but it shows the value of the previous input. (same happens with checkbox, ...)
When you remove {...$$restProps} form Input.svelte it is ok.
The text was updated successfully, but these errors were encountered:
Describe the bug
Insert dynamically an input item without a value before an existing item with a value, it transmits the value from the old component position to the new.
But only when spreading restProps at the input-element.
To Reproduce
https://svelte.dev/repl/58e9ba4d7977448b8511575f408c80ed?version=3.24.1
Click the button and it inserts at position 1 (between the 2 inputs) a new input.
This input did not has a value, so it should display
undefined
, but it shows the value of the previous input. (same happens with checkbox, ...)When you remove
{...$$restProps}
formInput.svelte
it is ok.The text was updated successfully, but these errors were encountered: