From 5b88461910d0e647a3310214e83b3df63ce2ccdd Mon Sep 17 00:00:00 2001 From: Roman Semenov Date: Fri, 25 Oct 2024 11:45:04 +0400 Subject: [PATCH] revert focusedStateEnabled: true in pagination --- e2e/testcafe-devextreme/tests/pagination/baseProperties.ts | 6 +++++- .../js/__internal/pager/common/pagination_props.ts | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/testcafe-devextreme/tests/pagination/baseProperties.ts b/e2e/testcafe-devextreme/tests/pagination/baseProperties.ts index bc5d792d1824..48a596549353 100644 --- a/e2e/testcafe-devextreme/tests/pagination/baseProperties.ts +++ b/e2e/testcafe-devextreme/tests/pagination/baseProperties.ts @@ -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) => { @@ -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(); @@ -105,6 +108,7 @@ test('Pagination focus method without focusStateEnabled', async (t) => { .ok(); }).before(async () => createWidget('dxPagination', { focusStateEnabled: false, + accessKey: 'F', itemCount: 50, })); diff --git a/packages/devextreme/js/__internal/pager/common/pagination_props.ts b/packages/devextreme/js/__internal/pager/common/pagination_props.ts index fa31ae2af2fe..cc997a5390b8 100644 --- a/packages/devextreme/js/__internal/pager/common/pagination_props.ts +++ b/packages/devextreme/js/__internal/pager/common/pagination_props.ts @@ -17,5 +17,4 @@ export const PaginationDefaultProps: PaginationProps = { pageIndex: 1, pageIndexChangedInternal: () => { }, pageSizeChangedInternal: () => { }, - focusStateEnabled: true, };