diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index f183b3124ab14b..5955505343f6e0 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -30,7 +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` 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)) 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 (