From c5fbe14de2964391b8eb5300b02317aad973a3a8 Mon Sep 17 00:00:00 2001 From: Avram Tudor Date: Mon, 14 Mar 2022 17:18:54 +0200 Subject: [PATCH] fix(highlight) fix allowing disabled button to execute handler (#11128) --- .../components/Recording/AbstractHighlightButton.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/react/features/recording/components/Recording/AbstractHighlightButton.js b/react/features/recording/components/Recording/AbstractHighlightButton.js index 39acdcad2..a9cad6629 100644 --- a/react/features/recording/components/Recording/AbstractHighlightButton.js +++ b/react/features/recording/components/Recording/AbstractHighlightButton.js @@ -43,9 +43,11 @@ export default class AbstractHighlightButton extends Component

{ * @returns {void} */ _onClick() { - const { dispatch } = this.props; + const { _disabled, dispatch } = this.props; - dispatch(highlightMeetingMoment()); + if (!_disabled) { + dispatch(highlightMeetingMoment()); + } } }