Skip to content

[RAC] SubmenuTrigger throws inside a Section #5858

@amitdahan

Description

@amitdahan

Provide a general summary of the issue here

I've been following progress of Submenu support in RAC (#5648) and excited it was very recently merged! 🎉

After trying it, I noticed though it's not yet supported when used together within Sections.

🤔 Expected Behavior?

SubmenuTrigger can be a direct child of Section.

😯 Current Behavior

An error is thrown:

Unsupported element type in Section: submenutrigger

image

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/great-goldstine-rzj4sq

Button on the left opens fine (no Section is used)
Button on the right throws immediately (SubmenuTrigger is nested within a Section)

Version

1.0.2-nightly.4451

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS 14.3

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions