If you are using the sr-only tailwind utility e.g for an input, ensure to set the position of its parent to relative.
This will fix any sudden overflow and save you hours of debugging.
<span className="inline-flex relative items-center justify-center">
<input type="checkbox" className="sr-only" />
{...}
</span>