Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[Date-Time-Picker] Month/Year changing redundant announcement fix #2057

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/terra-date-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Changed
* Fix for month/year SR redundant reading in Jaws.

## 4.100.0 - (February 28, 2024)

* Changed
Expand Down
2 changes: 0 additions & 2 deletions packages/terra-date-picker/src/react-datepicker/calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,13 @@ export default class Calendar extends React.Component {
isMonthChanged: true,
date: getStartOfMonth(setYear(cloneDate(this.state.date), year))
})
this.props.setPreSelection(getStartOfMonth(setYear(cloneDate(this.state.date), year)),dateValues.YEAR,year);
}

changeMonth = (month) => {
this.setState({
isMonthChanged: true,
date: getStartOfMonth(setMonth(cloneDate(this.state.date), month))
}, () => this.handleMonthChange(this.state.date))
this.props.setPreSelection(getStartOfMonth(setMonth(cloneDate(this.state.date), month)),dateValues.MONTH,month);
}

header = (date = this.state.date) => {
Expand Down
Loading