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

fix: Dropdown Overlapping Sidebar on Column Header Click in Horizontal Table When Scrolling #8287

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Vardhaman619
Copy link
Contributor

@Vardhaman619 Vardhaman619 commented Nov 2, 2024

fixes : #8272

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR implements scroll state management to prevent dropdown menus from overlapping with the sidebar when scrolling horizontally in record tables.

  • Added new RecordTableScrollContext to control X/Y scrolling states
  • Implemented scroll disabling in RecordTableColumnHeadWithDropdown when column header dropdown is opened
  • Modified ScrollWrapper component to respect enableXScroll and enableYScroll props from context
  • Enhanced Dropdown component to only close on Escape key when actually open
  • Added scroll state management in RecordTableWithWrappers using the new context provider

5 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +31 to +33
setEnableXScroll(false);
setEnableYScroll(false);
}, [setEnableXScroll, setEnableYScroll]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider only disabling X scroll since Y scroll is not related to the sidebar overlap issue

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

Successfully merging this pull request may close these issues.

Dropdown Overlapping Sidebar on Column Header Click in Horizontal Table When Scrolling
1 participant