Here is sample of Dropdown which works correctly.
<Dropdown>
<div
type="button"
aria-haspopup="true"
aria-expanded="false"
>
Show Dropdown
</div>
<template #popover>
<button
@click="submit"
>
Click me
</button>
</template>
</Dropdown>
<script>
method:{
submit() {
// How make Dropdown close
}
}
</script>
I need to close dropdown after button clicked.