Skip to content

Dialog inside DropdownMenu.Item doesn't work #239

Answered by CreedDE
chientrm asked this question in Help
Discussion options

You must be logged in to vote

He means that your Dialog.Content Component has to be outside the DropdownMenu.Content component.

That is my current data-table-actions.svelte file from the example Data Table.

<Dialog.Root>
	<DropdownMenu.Root>
		<DropdownMenu.Trigger asChild let:builder>
			<Button
				variant="link"
				builders={[builder]}
				size="sm"
				class="relative w-8 h-8 p-0"
			>
				<span class="sr-only">Open menu</span>
				<Fa icon={faEllipsisVertical} />
			</Button>
		</DropdownMenu.Trigger>
		<DropdownMenu.Content>
			<DropdownMenu.Group>
				<DropdownMenu.Label>Actions</DropdownMenu.Label>
				<DropdownMenu.Item>
					<Dialog.Trigger class="w-full">Copy payment ID</Dialog.Trigger>
				</DropdownMenu.I…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@chientrm
Comment options

@CreedDE
Comment options

Answer selected by chientrm
@chientrm
Comment options

@chientrm
Comment options

@CreedDE
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
type: bug A confirmed report of unexpected behavior in the application
3 participants
Converted from issue

This discussion was converted from issue #233 on August 31, 2023 18:57.