Fix MM53372 (#24494)

* Fix MM53372

* Remove unneeded casting
This commit is contained in:
Daniel Espino García 2023-09-25 11:08:10 +02:00 committed by GitHub
parent 845ea2a984
commit 2e0e35dda9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,14 +105,14 @@ export default class SuggestionList extends React.PureComponent<Props> {
announceLabel() {
const suggestionReadOut = this.props.ariaLiveRef?.current;
if (suggestionReadOut) {
suggestionReadOut.innerHTML = this.currentLabel as string;
suggestionReadOut.textContent = this.currentLabel;
}
}
removeLabel() {
const suggestionReadOut = this.props.ariaLiveRef?.current;
if (suggestionReadOut) {
suggestionReadOut.innerHTML = '';
suggestionReadOut.textContent = '';
}
}