Currently a tab gets the focus when you receive the mousedown event instead of the full click.
This is different from how tabs usually work everywhere else (including Tailwind Headless UI that fixed it with this PR: https://github.com/tailwindlabs/headlessui/pull/1192).
Unfortunately, it's not easily testable because cypress doesn't behave that way but chrome and firefox do.
Currently a tab gets the focus when you receive the mousedown event instead of the full click. This is different from how tabs usually work everywhere else (including Tailwind Headless UI that fixed it with this PR: https://github.com/tailwindlabs/headlessui/pull/1192).
Unfortunately, it's not easily testable because cypress doesn't behave that way but chrome and firefox do.
This seem to cause some interoperability issues with x-dialog too: https://github.com/alpinejs/alpine/discussions/4230#discussioncomment-9532452 (The OP didn't provide an example though).