This test helps diagnose why the assignment popover is not showing by creating a minimal test case.
Verify that the Popover components are properly imported:
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'The issue might be with event handling in the data table. Try:
@click.stop from the buttonThe popover might be rendered but hidden behind other elements:
overflow: hidden on parent containersCreate a minimal popover test in the same context:
<Popover>
<PopoverTrigger as-child>
<Button>Test</Button>
</PopoverTrigger>
<PopoverContent>
<div>Hello World</div>
</PopoverContent>
</Popover>
The table row might be preventing the popover from opening:
@click.stop to the popover triggerLet the Popover component handle opening/closing naturally:
<PopoverTrigger as-child>
<Button variant="ghost" size="sm">
<User class="h-3 w-3" />
</Button>
</PopoverTrigger>
Load project members when popover opens:
watch(isAssignmentPopoverOpen, (isOpen) => {
if (isOpen && projectMembers.value.length === 0) {
loadProjectMembers()
}
})
Prevent table row events from interfering:
<div @click.stop>
<Popover>...</Popover>
</div>
Ensure popover content is rendered in the correct location:
side="bottom" and align="start"