google-labs-jules[bot]
22a6a25f00
Fix: Prevent multiple context menus from being open simultaneously
...
This commit addresses an issue where multiple context menus could be open at the same time.
The fix involves the following:
- Modified `MenuContext` in `app/hooks/useMenuContext.tsx` to store a reference to the `hide` function of the currently open menu, instead of a boolean.
- Updated the `ContextMenu` component in `app/components/ContextMenu/index.tsx` to:
- Use the modified `MenuContext`.
- Before opening a new menu, check if another menu is already open.
- If an existing menu is open, it's closed before the new one is displayed.
Testing:
- I attempted to add a test for this change. However, due to a Node.js version incompatibility (sandbox: 18.19.1 vs. required: >=18.20 for a transitive dependency `lru-cache@^11.0.0` of `jest-environment-jsdom`), I was not able to run Jest tests in the development environment.
- I recommend that you run tests in a compatible Node.js environment, such as in your CI/CD pipeline, to ensure the new behavior is correctly tested and existing functionality remains unaffected.
2025-06-01 02:36:34 +00:00
..
2025-05-21 21:01:23 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-06-01 02:36:34 +00:00
2025-04-25 17:37:54 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-21 21:01:23 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2024-02-05 21:59:14 -05:00
2024-11-24 06:15:34 -08:00
2024-09-07 15:15:35 -07:00
2025-05-20 19:26:11 -04:00
2024-09-14 08:12:01 -07:00
2025-05-20 19:26:11 -04:00
2025-04-01 17:37:22 -07:00
2023-08-04 08:46:05 -04:00
2025-05-20 19:26:11 -04:00
2024-12-26 17:40:22 +00:00
2025-03-15 18:14:46 -07:00
2021-11-29 06:40:55 -08:00
2022-07-15 16:11:04 -07:00
2023-02-25 12:03:05 -08:00
2023-12-19 10:55:19 -05:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2023-04-13 19:24:33 -07:00
2025-05-23 14:51:17 -04:00
2024-10-06 05:37:11 -07:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2024-12-25 02:58:26 -08:00
2025-05-20 19:26:11 -04:00
2024-11-24 06:15:34 -08:00
2024-05-16 20:55:09 -04:00
2025-03-15 18:14:46 -07:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2023-04-07 19:43:34 -07:00
2025-04-24 02:12:27 +00:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2024-11-29 10:33:38 -05:00
2025-02-23 12:06:32 -05:00
2025-02-23 12:06:32 -05:00
2024-09-20 23:31:46 -04:00
2025-01-18 21:14:00 -05:00
2024-12-18 11:07:39 +09:00
2023-04-30 06:38:47 -07:00
2025-05-20 19:26:11 -04:00
2025-05-23 14:51:17 -04:00
2025-05-15 14:12:26 +00:00
2025-03-20 13:46:53 +00:00
2024-11-02 10:58:03 -07:00
2025-03-15 15:06:12 -07:00
2025-03-15 15:06:12 -07:00
2025-05-21 22:57:02 -04:00
2024-01-30 22:49:31 -05:00
2025-02-01 10:59:37 -05:00
2025-05-20 19:26:11 -04:00
2025-04-24 07:03:18 -04:00
2024-04-13 11:33:07 -07:00
2025-05-20 19:26:11 -04:00
2025-03-15 18:14:46 -07:00
2025-02-04 18:49:13 -08:00
2024-01-06 11:59:01 -05:00
2024-07-08 21:28:49 -04:00
2025-04-07 18:40:18 +00:00
2023-07-24 18:23:54 -07:00
2021-11-29 06:40:55 -08:00
2024-05-26 09:45:53 -07:00
2024-04-23 07:26:59 -04:00
2025-03-15 14:19:11 -07:00
2025-02-19 18:55:28 -08:00
2025-05-20 19:26:11 -04:00
2024-10-19 12:37:17 -04:00
2023-09-23 14:31:55 -04:00
2025-05-20 19:26:11 -04:00
2024-12-05 20:50:16 -08:00
2025-05-10 09:17:43 -04:00
2023-07-24 18:23:54 -07:00
2025-03-02 20:18:08 +00:00
2025-04-15 06:35:33 -07:00
2024-08-09 16:11:35 +01:00
2025-05-20 19:26:11 -04:00
2022-11-28 15:30:50 -08:00
2024-06-14 16:36:36 -07:00
2025-05-20 19:26:11 -04:00
2024-08-24 15:13:29 -04:00
2025-04-24 07:03:18 -04:00
2025-04-24 07:03:18 -04:00
2025-05-20 19:26:11 -04:00
2025-04-26 21:35:41 +00:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2024-08-29 11:26:12 -04:00
2025-05-20 19:26:11 -04:00
2024-12-06 19:55:45 -05:00
2023-03-13 18:05:06 -07:00
2021-11-29 06:40:55 -08:00
2022-01-15 17:47:53 -08:00
2025-02-04 18:49:13 -08:00
2023-12-19 10:55:19 -05:00
2024-04-24 22:55:33 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-01-18 21:14:00 -05:00
2025-04-24 07:03:18 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2024-11-24 06:15:34 -08:00
2024-02-03 11:23:25 -08:00
2025-01-18 21:14:00 -05:00
2025-04-19 16:24:14 -04:00
2024-11-24 06:15:34 -08:00
2025-05-20 19:26:11 -04:00
2025-05-03 19:40:18 -04:00
2025-04-13 06:09:13 -07:00
2023-07-24 18:23:54 -07:00
2025-05-20 19:26:11 -04:00
2025-05-20 19:26:11 -04:00
2024-12-12 11:39:19 -05:00
2024-12-07 12:45:29 -05:00
2024-02-02 23:21:12 -05:00
2024-12-25 02:58:26 -08:00
2025-05-20 19:26:11 -04:00
2022-06-28 22:44:50 -07:00