From 82a4b0c6453acc4c9d037205cb88886b0e8f5420 Mon Sep 17 00:00:00 2001 From: chad1008 <13856531+chad1008@users.noreply.github.com> Date: Tue, 31 May 2022 14:42:46 -0400 Subject: [PATCH 1/3] DateDayPicker: add `day` to `useEffect` dependency array --- packages/components/src/date-time/date/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/date-time/date/index.tsx b/packages/components/src/date-time/date/index.tsx index 0e583c6c5e150a..089248fd33c6d4 100644 --- a/packages/components/src/date-time/date/index.tsx +++ b/packages/components/src/date-time/date/index.tsx @@ -64,7 +64,7 @@ function DatePickerDay( { day, events = [] }: DatePickerDayProps ) { ); parentNode.setAttribute( 'aria-label', dayWithEventsDescription ); - }, [ events.length ] ); + }, [ day, events.length ] ); return ( Date: Tue, 31 May 2022 14:52:24 -0400 Subject: [PATCH 2/3] DateDayPicker: update changelog --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index f183b3124ab14b..5ed31ac3f7ecd0 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -30,6 +30,7 @@ - `BoxControl`: Update unit tests to use `@testing-library/user-event` ([#41422](https://github.com/WordPress/gutenberg/pull/41422)). - `Surface`: Convert to TypeScript ([#41212](https://github.com/WordPress/gutenberg/pull/41212)). - `Autocomplete` updated to satisfy `react/exhuastive-deps` eslint rule ([#41382](https://github.com/WordPress/gutenberg/pull/41382)) +- `DateDayPicker`: Update unit tests to use `@testing-library/user-event` ([#41470](https://github.com/WordPress/gutenberg/pull/41470)). ### Experimental From 6b68a6c4731e32c68b20cc4a70713fe6b855516e Mon Sep 17 00:00:00 2001 From: chad1008 <13856531+chad1008@users.noreply.github.com> Date: Wed, 1 Jun 2022 13:27:18 -0400 Subject: [PATCH 3/3] rebase --- packages/components/CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 5ed31ac3f7ecd0..5955505343f6e0 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -30,8 +30,7 @@ - `BoxControl`: Update unit tests to use `@testing-library/user-event` ([#41422](https://github.com/WordPress/gutenberg/pull/41422)). - `Surface`: Convert to TypeScript ([#41212](https://github.com/WordPress/gutenberg/pull/41212)). - `Autocomplete` updated to satisfy `react/exhuastive-deps` eslint rule ([#41382](https://github.com/WordPress/gutenberg/pull/41382)) -- `DateDayPicker`: Update unit tests to use `@testing-library/user-event` ([#41470](https://github.com/WordPress/gutenberg/pull/41470)). - +- `DateDayPicker` updated to satisfy `react/exhuastive-deps` eslint rule ([#41470](https://github.com/WordPress/gutenberg/pull/41470)). ### Experimental - `Spacer`: Add RTL support. ([#41172](https://github.com/WordPress/gutenberg/pull/41172))