Skip to content

Commit

Permalink
fix: return disclosedChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmch committed Oct 11, 2023
1 parent 8df1120 commit f078983
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/blocks/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,7 @@ export const SliderBlock = (props: WithChildren<SliderProps>) => {

return (
<OutsideClick onOutsideClick={isMobile ? unsetFocus : noop}>
<SlickSlider {...settings}>
{React.Children.map(disclosedChildren, (child, i) => {
return (
<div
//@ts-ignore to prevent focusable elements from other slides being focused
inert={isVisibleSlide(i) ? undefined : ''}
>
{child}
</div>
);
})}
</SlickSlider>
<SlickSlider {...settings}>{disclosedChildren}</SlickSlider>
<div className={b('footer')}>
{renderDisclaimer()}
{renderNavigation()}
Expand Down

0 comments on commit f078983

Please sign in to comment.