Rename slot to slotProps in <Render>
Conflicted with Svelte's use of the `slot` attribute
This commit is contained in:
@@ -216,16 +216,16 @@
|
||||
$buttonRef?.focus({ preventScroll: true });
|
||||
}
|
||||
}
|
||||
$: slot = { open: listboxState === ListboxStates.Open };
|
||||
$: slotProps = { open: listboxState === ListboxStates.Open };
|
||||
</script>
|
||||
|
||||
<svelte:window on:mousedown={handleMousedown} />
|
||||
<Render
|
||||
{...$$restProps}
|
||||
{as}
|
||||
{slot}
|
||||
{slotProps}
|
||||
use={[...use, forwardEvents]}
|
||||
name={"Listbox"}
|
||||
>
|
||||
<slot {...slot} />
|
||||
<slot {...slotProps} />
|
||||
</Render>
|
||||
|
||||
Reference in New Issue
Block a user