[COMPASS-6271] use portal in editing document menu crud view Created: 02/Nov/22  Updated: 27/Oct/23  Resolved: 13/Jun/23

Status: Closed
Project: Compass
Component/s: CRUD, UI / UX
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to COMPASS-6186 Fix menus and add padding after the l... Closed
Story Points: 3
Documentation Changes: Not Needed

 Description   

Currently we pass `usePortal={false}` to the `Menu` shown when adding a field to a document view in the crud (and in add a document modal). Let's update it to `usePortal={true}` (the default behavior https://www.mongodb.design/component/menu/example/ ) so that it doesn't get cut off and cause scrolling issues on the page.

We'll want to pass a scroll container ref, maybe something that can be passed through context and a provider.



 Comments   
Comment by Rhys Howell [ 13/Jun/23 ]

This went away at some point, likely with a leafygreen version bump.

Generated at Wed Feb 07 22:42:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.