|
@@ -1,7 +1,7 @@
|
|
import {fetchPost} from "../../../util/fetch";
|
|
import {fetchPost} from "../../../util/fetch";
|
|
import {getColIconByType} from "./col";
|
|
import {getColIconByType} from "./col";
|
|
import {Constants} from "../../../constants";
|
|
import {Constants} from "../../../constants";
|
|
-import {addDragFill, renderCell} from "./cell";
|
|
|
|
|
|
+import {addDragFill, cellScrollIntoView, renderCell} from "./cell";
|
|
import {unicode2Emoji} from "../../../emoji";
|
|
import {unicode2Emoji} from "../../../emoji";
|
|
import {focusBlock} from "../../util/selection";
|
|
import {focusBlock} from "../../util/selection";
|
|
import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName} from "../../util/hasClosest";
|
|
import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName} from "../../util/hasClosest";
|
|
@@ -310,13 +310,13 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}
|
|
} else if (!document.querySelector(".av__panel") && !isSearching) {
|
|
} else if (!document.querySelector(".av__panel") && !isSearching) {
|
|
focusBlock(e);
|
|
focusBlock(e);
|
|
}
|
|
}
|
|
|
|
+ cellScrollIntoView(e, newCellElement);
|
|
}
|
|
}
|
|
selectRowIds.forEach((selectRowId, index) => {
|
|
selectRowIds.forEach((selectRowId, index) => {
|
|
const rowElement = e.querySelector(`.av__row[data-id="${selectRowId}"]`) as HTMLElement;
|
|
const rowElement = e.querySelector(`.av__row[data-id="${selectRowId}"]`) as HTMLElement;
|
|
if (rowElement) {
|
|
if (rowElement) {
|
|
rowElement.classList.add("av__row--select");
|
|
rowElement.classList.add("av__row--select");
|
|
rowElement.querySelector(".av__firstcol use").setAttribute("xlink:href", "#iconCheck");
|
|
rowElement.querySelector(".av__firstcol use").setAttribute("xlink:href", "#iconCheck");
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
if (index === selectRowIds.length - 1 && rowElement) {
|
|
if (index === selectRowIds.length - 1 && rowElement) {
|