Skip to content

Commit f03dbb5

Browse files
committed
Remove tabindex prop to pass through as attr
1 parent a4ce758 commit f03dbb5

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

src/components/VCheckbox/VCheckbox.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default {
6666
staticClass: 'v-input--selection-controls__input'
6767
}, [
6868
this.genInput('checkbox', {
69+
...this.$attrs,
6970
'aria-checked': this.inputIndeterminate
7071
? 'mixed'
7172
: this.isActive.toString()

src/components/VInput/VInput.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export default {
4848
/** @deprecated */
4949
prependIconCb: Function,
5050
readonly: Boolean,
51-
tabindex: { default: 0 },
5251
value: { required: false }
5352
},
5453

src/components/VSlider/VSlider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default {
247247
'aria-label': this.label,
248248
name: this.name,
249249
role: 'slider',
250-
tabindex: this.disabled ? -1 : undefined,
250+
tabindex: this.disabled ? -1 : this.$attrs.tabindex,
251251
type: 'range',
252252
value: this.internalValue,
253253
readonly: true,

src/components/VSwitch/VSwitch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
return this.$createElement('div', {
3737
staticClass: 'v-input--selection-controls__input'
3838
}, [
39-
this.genInput('checkbox'),
39+
this.genInput('checkbox', this.$attrs),
4040
!this.disabled && this.genRipple({
4141
'class': this.classesSelectable,
4242
directives: [{

src/components/VTextField/VTextField.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ export default {
318318
autofocus: this.autofocus,
319319
disabled: this.disabled,
320320
readonly: this.readonly,
321-
tabindex: this.tabindex,
322321
type: this.type,
323322
'aria-label': (!this.$attrs || !this.$attrs.id) && this.label // Label `for` will be set if we have an id
324323
},

0 commit comments

Comments
 (0)