Skip to content

Commit

Permalink
fix: revert slider
Browse files Browse the repository at this point in the history
  • Loading branch information
suyulin committed Feb 23, 2024
1 parent fb6a75b commit bdf4ab8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vant/src/slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,14 @@ export default defineComponent({
ref={slider}
role="slider"
class={getButtonClassName(index)}
style={{ width: props.buttonSize, height: props.buttonSize }}
tabindex={props.disabled ? undefined : 0}
aria-valuemin={props.min}
aria-valuenow={current}
aria-valuemax={props.max}
aria-disabled={props.disabled || undefined}
aria-readonly={props.readonly || undefined}
aria-orientation={props.vertical ? 'vertical' : 'horizontal'}
onTouchstartPassive={(event) => {
onTouchstartPassive={(event: TouchEvent) => {
if (typeof index === 'number') {
// save index of current button
buttonIndex = index;
Expand Down

0 comments on commit bdf4ab8

Please sign in to comment.