Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork484
Open
Description
Describe the bug
Eglet {ref = $bindable(null), value = $bindable(), class: className, ...restProps} = $props()
If class isn't set, a type error is reported. The fix is to set a defaultclass: className = ''.
With typescript this is fixed at the typing level
typeRequired={class:string}typeOptional={class?:string}
Reproduction
- Disable typescript
- Add component
- Don't pass class prop
Logs
System Info
n/a
Severity
annoyance