File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/vuetify/src/components/VDataTable Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export const VDataTableColumn = defineFunctionalComponent({
22
22
const Tag = props . tag ?? 'td'
23
23
return (
24
24
< Tag
25
- tabindex = "0"
26
25
class = { [
27
26
'v-data-table__td' ,
28
27
{
Original file line number Diff line number Diff line change @@ -164,13 +164,14 @@ export const VDataTableHeaders = genericComponent<VDataTableHeadersSlots>()({
164
164
} }
165
165
colspan = { column . colspan }
166
166
rowspan = { column . rowspan }
167
- onClick = { column . sortable ? ( ) => toggleSort ( column ) : undefined }
168
167
fixed = { column . fixed }
169
168
nowrap = { column . nowrap }
170
169
lastFixed = { column . lastFixed }
171
170
noPadding = { noPadding }
171
+ tabindex = { column . sortable ? 0 : undefined }
172
+ onClick = { column . sortable ? ( ) => toggleSort ( column ) : undefined }
173
+ onKeydown = { column . sortable ? ( event : KeyboardEvent ) => handleEnterKeyPress ( event , column ) : undefined }
172
174
{ ...headerProps }
173
- onKeydown = { ( event : KeyboardEvent ) => column . sortable && handleEnterKeyPress ( event , column ) }
174
175
>
175
176
{ {
176
177
default : ( ) => {
You can’t perform that action at this time.
0 commit comments