Skip to content

Commit

Permalink
feat: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezhik Kyzyl-Ool committed Oct 10, 2023
1 parent 25962b1 commit 8b8b7f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/blocks/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ export const SliderBlock = (props: WithChildren<SliderProps>) => {
<OutsideClick onOutsideClick={isMobile ? unsetFocus : noop}>
<SlickSlider {...settings}>
{React.Children.map(disclosedChildren, (child, i) => {
//@ts-ignore to prevent focusable elements from other slides being focused
return <div inert={currentIndex !== i ? '' : undefined}>{child}</div>;
})}
</SlickSlider>
Expand Down

0 comments on commit 8b8b7f6

Please sign in to comment.