From 2e0e35dda9bceda9f7880e6c9aac4cc72e890d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Mon, 25 Sep 2023 11:08:10 +0200 Subject: [PATCH] Fix MM53372 (#24494) * Fix MM53372 * Remove unneeded casting --- webapp/channels/src/components/suggestion/suggestion_list.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/channels/src/components/suggestion/suggestion_list.tsx b/webapp/channels/src/components/suggestion/suggestion_list.tsx index 2c079ddbc3..82a27bb2b0 100644 --- a/webapp/channels/src/components/suggestion/suggestion_list.tsx +++ b/webapp/channels/src/components/suggestion/suggestion_list.tsx @@ -105,14 +105,14 @@ export default class SuggestionList extends React.PureComponent { 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 = ''; } }