Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Oct 16, 2024
1 parent 5b1686c commit e292a1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/mui-base/src/ScrollArea/Root/ScrollAreaRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const ScrollAreaRoot = React.forwardRef(function ScrollAreaRoot(
<ScrollAreaRootContext.Provider value={contextValue}>
{rootId && (
<style
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: `${viewportId},${scrollbarId}{scrollbar-width:none;}${viewportId}::-webkit-scrollbar,${scrollbarId}::-webkit-scrollbar{display:none}`,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,18 @@ export function useScrollAreaScrollbar(params: useScrollAreaScrollbar.Parameters
},
}),
[
dir,
type,
handlePointerDown,
rootId,
handlePointerUp,
overscrollStyles,
type,
orientation,
scrollbarXRef,
dir,
viewportRef,
thumbYRef,
scrollbarYRef,
thumbXRef,
thumbYRef,
viewportRef,
overscrollStyles,
scrollbarXRef,
handlePointerDown,
],
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export function useScrollAreaViewport(params: useScrollAreaViewport.Parameters)
return () => {
ro.disconnect();
};
}, [computeThumb]);
}, [computeThumb, viewportRef]);

const wrapperStyles: React.CSSProperties = React.useMemo(() => ({}), []);

Expand Down

0 comments on commit e292a1a

Please sign in to comment.