Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown-MenuItems SupportOutside not working right #119

Open
nku-bsw opened this issue Nov 18, 2022 · 1 comment
Open

Dropdown-MenuItems SupportOutside not working right #119

nku-bsw opened this issue Nov 18, 2022 · 1 comment
Assignees

Comments

@nku-bsw
Copy link
Member

nku-bsw commented Nov 18, 2022

When the ActionMenu has multiple Dropdown MenuItems wich are beside each other, then both can be opened. Normally when one is Open and an other MenuItem is clicked the Open Dropdown-MenuItem will close. This will not happend when an other Dropdown-MenuItem is clicked.
image

               <MenuItem label="I'm a MenuItem" />
                <div>
                    <MenuItem label="I'm a MenuItem with children" supportOutside icon={<CloudSleet />}>
                        <MenuItem label="I'm a MenuItem" />
                        <MenuItem label="Another one" />
                    </MenuItem>
                </div>

                <div className="position-relative">
                    <MenuItem label="Actions" supportOutside dropdownClassName="position-absolute end-0">
                        <MenuItem label="Do a lot, a loooot of stuff" />
                        <MenuItem label="Yeah, really a lot of stuff" />
                    </MenuItem>
                </div>
                <div className="position-relative">
                    <MenuItem label="Actions" supportOutside dropdownClassName="position-absolute end-0">
                        <MenuItem label="Do a lot, a loooot of stuff" />
                        <MenuItem label="Yeah, really a lot of stuff" />
                    </MenuItem>
                </div>

If the first Dropdown-MenuItem is open and another the second Dropdown-MenuItem is clicked the first Dropdown-MenuItem should close when "supportOutside"-Prop is set to the MenuItem.

@lgk-bsw
Copy link
Member

lgk-bsw commented Apr 3, 2023

Test Kommentar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants