mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-02 00:29:30 +00:00
feat: auto-scroll to bottom when adding a new row in DataGrid
This commit is contained in:
@@ -315,6 +315,10 @@ function onEditKeydown(e: KeyboardEvent) {
|
||||
|
||||
function addRow() {
|
||||
newRows.value.push(props.result.columns.map(() => null));
|
||||
nextTick(() => {
|
||||
const el = getScrollerElement();
|
||||
if (el) el.scrollTop = el.scrollHeight;
|
||||
});
|
||||
}
|
||||
|
||||
function deleteSelectedRow() {
|
||||
|
||||
Reference in New Issue
Block a user