Skip to content

Commit

Permalink
[Docs]: remove autofocus of the last row of editable table example
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyManetov committed Nov 7, 2024
1 parent c95dd95 commit b6ddde2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions app/src/docs/_examples/tables/EditableTable.example.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import React, { useCallback, useMemo, useState } from 'react';
import { DataColumnProps, DataSourceState, DataTableRowProps, IImmutableMap, ItemsMap, Metadata, PatchOrdering, useArrayDataSource } from '@epam/uui-core';
import { Button, Checkbox, FlexSpacer, DataTable, DataTableCell, DataTableRow, DatePicker, FlexCell, FlexRow, Panel, PickerInput,
TextArea, TextInput, useForm, IconButton } from '@epam/uui';
Expand Down Expand Up @@ -117,10 +117,6 @@ export default function EditableTableExample() {
});
}, [setTableState]);

useEffect(() => {
dataTableFocusManager?.focusRow(lastId - 1);
}, [dataTableFocusManager]);

// Define DataSource to use in PickerInput in the 'tags' column
const pickerDataSource = useArrayDataSource({ items: tags }, []);

Expand Down
3 changes: 2 additions & 1 deletion app/src/docs/_examples/tables/TablesExamples.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@import '~@epam/promo/assets/styles/colors';

.container {
height: 400px;
min-height: 454px;
max-height: 620px;
display: flex;
flex: 1 1 0;
flex-direction: column;
Expand Down

0 comments on commit b6ddde2

Please sign in to comment.