Skip to content

Commit

Permalink
feat(RangeSlider): Enable tick display without stepped
Browse files Browse the repository at this point in the history
  • Loading branch information
m7kvqbe1 committed Sep 15, 2020
1 parent 1148c77 commit d40addc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ describe('RangeSlider', () => {
)
})

it('should render the ticks', () => {
expect(wrapper.getAllByTestId('rangeslider-tick')).toHaveLength(5)
})

it('should render a single handle', () => {
expect(wrapper.queryAllByTestId('rangeslider-handle').length).toBe(1)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const RangeSlider: React.FC<RangeSliderProps> = ({
</div>
)}
</Tracks>
{step && (
{tickCount && (
<Ticks count={tickCount}>
{({ ticks }) => (
<div className="rn-rangeslider__ticks">
Expand Down

0 comments on commit d40addc

Please sign in to comment.