-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Dropdown Overlapping Sidebar on Column Header Click in Horizonta…
…l Table When Scrolling (#8287) fixes : #8272 --------- Co-authored-by: Lucas Bordeau <[email protected]>
- Loading branch information
1 parent
8b8b9fe
commit 5115022
Showing
5 changed files
with
64 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 25 additions & 6 deletions
31
...-record/record-table/record-table-header/components/RecordTableColumnHeadWithDropdown.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...front/src/modules/object-record/record-table/states/isScrollEnabledForRecordTableState.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { RecordTableComponentInstanceContext } from '@/object-record/record-table/states/context/RecordTableComponentInstanceContext'; | ||
import { createComponentStateV2 } from '@/ui/utilities/state/component-state/utils/createComponentStateV2'; | ||
|
||
export type ScrollEnabled = { | ||
enableXScroll: boolean; | ||
enableYScroll: boolean; | ||
}; | ||
|
||
export const isScrollEnabledForRecordTableState = | ||
createComponentStateV2<ScrollEnabled>({ | ||
key: 'isScrollEnabledForRecordTableState', | ||
defaultValue: { | ||
enableXScroll: true, | ||
enableYScroll: true, | ||
}, | ||
componentInstanceContext: RecordTableComponentInstanceContext, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters