We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 071499e commit 9a4b1f4Copy full SHA for 9a4b1f4
packages/ve-table/src/index.jsx
@@ -1887,6 +1887,14 @@ export default {
1887
if (position) {
1888
scrollTop = position.top;
1889
}
1890
+
1891
+ // fix bug #470
1892
+ setTimeout(() => {
1893
+ scrollTo(tableContainerRef, {
1894
+ top: scrollTop,
1895
+ behavior: "auto",
1896
+ });
1897
+ }, 200);
1898
} else {
1899
const rowEl = this.$el.querySelector(
1900
`tbody tr[${COMPS_CUSTOM_ATTRS.BODY_ROW_KEY}="${rowKey}"]`,
@@ -1904,7 +1912,7 @@ export default {
1904
1912
1905
1913
scrollTo(tableContainerRef, {
1906
1914
top: scrollTop,
1907
- behavior: "smooth",
1915
+ behavior: isVirtualScroll ? "auto" : "smooth",
1908
1916
});
1909
1917
},
1910
1918
// scroll to col key position
0 commit comments