If I wrap a <input type="checkbox"/> (haven't tested other inputs) in a component, making it a controlled input, it's checked-binding becomes unreliable. It's easy to get that component into a state where the prop that determines the checked state is false, but the input is actually checked.
Best explained with a REPL, which contains instructions on how to reproduce the issue:
https://svelte.dev/repl/c822cdcaa291404289d87b8faabef831?version=3.6.7
Maybe its related somehow with the lazy evaluation ... or not. The reorder of the invalidate expression fixes the issue, but dont see why.
https://svelte.dev/repl/c2ac3a1407dd4283a18c36e9c67841cb?version=3.6.7
Fixed as shown in https://svelte.dev/repl/406349eb7ad84d4b92e6c7b2adfcee7f?version=3.23.2 via https://github.com/sveltejs/svelte/issues/5047#issuecomment-647150191
Most helpful comment
Maybe its related somehow with the lazy evaluation ... or not. The reorder of the invalidate expression fixes the issue, but dont see why.
https://svelte.dev/repl/c2ac3a1407dd4283a18c36e9c67841cb?version=3.6.7