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
<script>
import Button from 'components/Button';
import Menu from 'components/Menu';
import List from 'components/List';
let open = true;
let selected = "";
const items = [
{ value: 1, text: 'One' },
{ value: 2, text: 'Two' },
{ value: 3, text: 'Three' },
{ value: 4, text: 'Four' },
{ value: 5, text: 'Five' },
];
</script>
<small>Selected: {selected || 'nothing'}</small>
<Menu bind:open {items} bind:value={selected}>
<div slot="activator">
<Button on:click={() => open = !open}>A menu</Button>
</div>
</Menu>
throws the error:
Uncaught (in promise) ReferenceError: div is not defined
at Object.update [as p] (Menu.svelte:47)
at Object.update [as p] (Menu.svelte:44)
at update (index.mjs:687)
at flush (index.mjs:656)
I can't find why is that happening?
The text was updated successfully, but these errors were encountered:
Hi,
The following example from the docs:
throws the error:
I can't find why is that happening?
The text was updated successfully, but these errors were encountered: