If I use my logout buttom from auth.js inside of a shadcn Dropdown menu I get the following error (outside of the Dropdown menu it works just fine):
"Form submission canceled because the form is not connected"
My logout button logic is like this:
<form
action={async () => {
"use server";
await signOut();
}}
>
<Button className="text-white" type="submit">
Log out
</Button>
</form>
How can I get this to work?