* Fix MM53372

* Remove unneeded casting
Этот коммит содержится в:
Daniel Espino García
2023-09-25 11:08:10 +02:00
коммит произвёл GitHub
родитель 845ea2a984
Коммит 2e0e35dda9

Просмотреть файл

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