Skip to content

Commit

Permalink
revert focusedStateEnabled: true in pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Oct 25, 2024
1 parent ad07416 commit 5b88461
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion e2e/testcafe-devextreme/tests/pagination/baseProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ test('Pagination hint, disabled and accessKey properties', async (t) => {
disabled: true,
accessKey: 'F',
itemCount: 50,
focusStateEnabled: true,
}));

test('Pagination tabindex and state properties', async (t) => {
Expand Down Expand Up @@ -90,9 +91,11 @@ test('Pagination tabindex and state properties', async (t) => {
tabIndex: 7,
}));

test('Pagination focus method without focusStateEnabled', async (t) => {
test('Pagination focus method & accessKey propery without focusStateEnabled', async (t) => {
const pagination = new Pagination('#container');
await t
.expect(pagination.element.getAttribute('accesskey'))
.eql('')
.expect(pagination.getPageSize(0).element.focused)
.notOk();

Expand All @@ -105,6 +108,7 @@ test('Pagination focus method without focusStateEnabled', async (t) => {
.ok();
}).before(async () => createWidget('dxPagination', {
focusStateEnabled: false,
accessKey: 'F',
itemCount: 50,
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ export const PaginationDefaultProps: PaginationProps = {
pageIndex: 1,
pageIndexChangedInternal: () => { },
pageSizeChangedInternal: () => { },
focusStateEnabled: true,
};

0 comments on commit 5b88461

Please sign in to comment.