Skip to content

The open alternative to Salesforce, designed for AI.

fix: scrolling inside the table with scrollbar (#9753)

Chandragupt Gosavi1d7cbcabee7c
diff --git a/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx b/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx
index 9709422b030..0e7af457fe1 100644
--- a/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx
+++ b/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx
@@ -139,7 +139,18 @@ export const ScrollWrapper = ({
},
events: {
updated: (osInstance) => {
- const { scrollOffsetElement: target } = osInstance.elements();
+ const {
+ scrollOffsetElement: target,
+ scrollbarVertical,
+ scrollbarHorizontal,
+ } = osInstance.elements();
+
+ if (scrollbarVertical !== null) {
+ scrollbarVertical.track.dataset.selectDisable = 'true';
+ }
+ if (scrollbarHorizontal !== null) {
+ scrollbarHorizontal.track.dataset.selectDisable = 'true';
+ }
setScrollBottom(
target.scrollHeight - target.clientHeight - target.scrollTop,
);