Fixed lint errors
parent
04ed4a823e
commit
641856265d
|
@ -471,7 +471,7 @@ export default {
|
||||||
if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
|
if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
|
||||||
DomHandler.clearSelection();
|
DomHandler.clearSelection();
|
||||||
this.rangeRowIndex = rowIndex;
|
this.rangeRowIndex = rowIndex;
|
||||||
this.selectRange(event, rowIndex);
|
this.selectRange(event);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const selected = this.isSelected(rowData);
|
const selected = this.isSelected(rowData);
|
||||||
|
@ -547,7 +547,7 @@ export default {
|
||||||
switch (event.which) {
|
switch (event.which) {
|
||||||
//down arrow
|
//down arrow
|
||||||
case 40:
|
case 40:
|
||||||
let nextRow = this.findNextSelectableRow(row);
|
var nextRow = this.findNextSelectableRow(row);
|
||||||
if (nextRow) {
|
if (nextRow) {
|
||||||
nextRow.focus();
|
nextRow.focus();
|
||||||
}
|
}
|
||||||
|
@ -557,7 +557,7 @@ export default {
|
||||||
|
|
||||||
//up arrow
|
//up arrow
|
||||||
case 38:
|
case 38:
|
||||||
let prevRow = this.findPrevSelectableRow(row);
|
var prevRow = this.findPrevSelectableRow(row);
|
||||||
if (prevRow) {
|
if (prevRow) {
|
||||||
prevRow.focus();
|
prevRow.focus();
|
||||||
}
|
}
|
||||||
|
@ -661,7 +661,7 @@ export default {
|
||||||
return 'p-datatable-row';
|
return 'p-datatable-row';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectRange(event, rowIndex) {
|
selectRange(event) {
|
||||||
let rangeStart, rangeEnd;
|
let rangeStart, rangeEnd;
|
||||||
|
|
||||||
if (this.rangeRowIndex > this.anchorRowIndex) {
|
if (this.rangeRowIndex > this.anchorRowIndex) {
|
||||||
|
|
Loading…
Reference in New Issue