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 Behavior Issue: Multiple Dropdowns Stay Open in RM 4.7.0 #1614

Open
moathabuhamad-cengage opened this issue Jan 8, 2025 · 1 comment · May be fixed by #1615
Open

Dropdown Behavior Issue: Multiple Dropdowns Stay Open in RM 4.7.0 #1614

moathabuhamad-cengage opened this issue Jan 8, 2025 · 1 comment · May be fixed by #1615
Assignees
Labels
bug Something isn't working
Milestone

Comments

@moathabuhamad-cengage
Copy link
Collaborator

moathabuhamad-cengage commented Jan 8, 2025

Describe the bug
After updating RM from version 4.6.0 to 4.7.0, dropdowns exhibit unexpected behavior:
When multiple dropdowns are present, opening one does not close the previously opened dropdown.
Once this occurs, the open dropdown cannot be closed manually by clicking elsewhere on the page.

To Reproduce
Go to a page with two or more dropdown components.
https://react-magma.cengage.com/version/4.7.0/api/dropdown/
Open one dropdown.
Open another dropdown without closing the first one.
Attempt to close the open dropdown by clicking outside of it.

Expected behavior
Opening one dropdown should automatically close any previously opened dropdowns.
Clicking outside of an open dropdown should close it.

Screenshots
image

@silvalaura silvalaura added the bug Something isn't working label Jan 8, 2025
@moathabuhamad-cengage moathabuhamad-cengage self-assigned this Jan 8, 2025
@silvalaura
Copy link
Collaborator

We should make sure we test this on multiple browsers. I remember we used to have this problem only on Safari at one point, so we should ensure this solution works for all.

@moathabuhamad-cengage moathabuhamad-cengage moved this from To Do to In Progress in React Magma Jan 8, 2025
@moathabuhamad-cengage moathabuhamad-cengage linked a pull request Jan 8, 2025 that will close this issue
5 tasks
@moathabuhamad-cengage moathabuhamad-cengage linked a pull request Jan 8, 2025 that will close this issue
5 tasks
@moathabuhamad-cengage moathabuhamad-cengage moved this from In Progress to Ready for Review in React Magma Jan 8, 2025
@silvalaura silvalaura added this to the 2025-Q1 Bugs milestone Jan 10, 2025
@moathabuhamad-cengage moathabuhamad-cengage moved this from Ready for Review to In Progress in React Magma Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants