pull/18477/merge
Barry 1 week ago committed by GitHub
commit 7a703ab85e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -52,3 +52,5 @@ In this case, you can specify a fallback value for when no prop is passed at all
/// file: FancyInput.svelte
let { value = $bindable('fallback'), ...props } = $props();
```
When a bindable prop has a fallback value, the parent must pass a value other than `undefined` if it uses `bind:`. This avoids ambiguity about which value should apply, since the parent and child should share the same value for a binding.

Loading…
Cancel
Save