Skip to content

[ContextMenu] FocusGuard creates <span> elements in table body if used on table rows #3166

@ilovemesomeramen

Description

@ilovemesomeramen

Bug report

Current behavior

When a ContextMenu is triggered it created <span> elements in the container where it was defined. This creates an issue when used inside Tables since they are not allowed to be inside the table structure.

Expected behavior

Being able to use the ContextMenu inside tables and table rows

Reproducible example

Link to CodeSandbox

Github Repo

Base UI version

1.0.0-beta.4

Which browser are you using?

Chrome

Which OS are you using?

Linux

Which assistive tech are you using (if applicable)?

None

Additional context

The issue was already briefly discussed here:
https://discord.com/channels/1287292451308048406/1436013951367254137

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: context menuChanges related to the context menu component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions