mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
parent
845ea2a984
commit
2e0e35dda9
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user