Skip to content

Commit

Permalink
fix(Slider): transform invalid into proper attributes (#6809)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvsia authored Sep 10, 2020
1 parent 0d60a62 commit a4befc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react/src/components/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ export default class Slider extends PureComponent {
disabled,
name,
light,
invalid,
...other
} = this.props;

Expand Down Expand Up @@ -552,6 +553,7 @@ export default class Slider extends PureComponent {
onKeyDown={this.onKeyDown}
role="presentation"
tabIndex={-1}
data-invalid={invalid || null}
{...other}>
<div
className={`${prefix}--slider__thumb`}
Expand Down Expand Up @@ -591,6 +593,8 @@ export default class Slider extends PureComponent {
max={max}
step={step}
onChange={this.onChange}
data-invalid={invalid || null}
aria-invalid={invalid || null}
/>
</div>
</div>
Expand Down

0 comments on commit a4befc8

Please sign in to comment.