|
|
@ -414,7 +414,8 @@ const closeAddColumnDropdown = (scrollToLastCol = false) => { |
|
|
|
preloadColumn.value = {} |
|
|
|
preloadColumn.value = {} |
|
|
|
if (scrollToLastCol) { |
|
|
|
if (scrollToLastCol) { |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
const lastAddNewRowHeader = tableHeadEl.value?.querySelector('th:last-child') |
|
|
|
const lastAddNewRowHeader = |
|
|
|
|
|
|
|
tableHeadEl.value?.querySelector('.nc-grid-add-edit-column') ?? tableHeadEl.value?.querySelector('th:last-child') |
|
|
|
if (lastAddNewRowHeader) { |
|
|
|
if (lastAddNewRowHeader) { |
|
|
|
lastAddNewRowHeader.scrollIntoView({ behavior: 'smooth' }) |
|
|
|
lastAddNewRowHeader.scrollIntoView({ behavior: 'smooth' }) |
|
|
|
} |
|
|
|
} |
|
|
|