Skip to content

Commit

Permalink
solidjs code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSora committed Oct 13, 2023
1 parent 0b4d042 commit e37a98d
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,10 @@ export const OverlayScrollbarsComponent = <T extends keyof JSX.IntrinsicElements
<Dynamic
component={finalProps.element}
data-overlayscrollbars-initialize=""
ref={(ref: any) => {
setElementRef(ref);
}}
ref={setElementRef}
{...other}
>
<div
data-overlayscrollbars-contents=""
ref={(ref: any) => {
setChildrenRef(ref);
}}
>
<div data-overlayscrollbars-contents="" ref={setChildrenRef}>
{children(() => finalProps.children)()}
</div>
</Dynamic>
Expand Down

0 comments on commit e37a98d

Please sign in to comment.