Skip to content

Commit

Permalink
fix: scroller is interrupting with the mouse events even when it is n…
Browse files Browse the repository at this point in the history
…ot visible (#920)

* fix: scroller is interrupting with the mouse events even when it is not visible

* Fix code
  • Loading branch information
spradhan-eightfold authored Dec 12, 2024
1 parent f0b09c2 commit 35efd65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Table/Internal/Body/Scroller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export const Scroller = React.forwardRef(
? 'unset'
: startButtonLtrOffset + BUTTON_PADDING,
opacity: startButtonVisible && visible ? 1 : 0,
visibility: startButtonVisible && visible ? 'visible' : 'hidden',
right:
direction === 'rtl'
? startButtonRtlOffset + BUTTON_PADDING
Expand Down Expand Up @@ -272,6 +273,7 @@ export const Scroller = React.forwardRef(
BUTTON_PADDING
: 'unset',
opacity: endButtonVisible && visible ? 1 : 0,
visibility: endButtonVisible && visible ? 'visible' : 'hidden',
right:
direction === 'rtl'
? 'unset'
Expand Down

0 comments on commit 35efd65

Please sign in to comment.