diff --git a/react/features/base/popover/components/Popover.web.js b/react/features/base/popover/components/Popover.web.js index d5253b2b1..7435c3162 100644 --- a/react/features/base/popover/components/Popover.web.js +++ b/react/features/base/popover/components/Popover.web.js @@ -66,6 +66,11 @@ class Popover extends Component { */ content: PropTypes.object, + /** + * Whether displaying of the popover should be prevented. + */ + disablePopover: PropTypes.bool, + /** * An id attribute to apply to the root of the {@code Popover} * component. @@ -148,12 +153,13 @@ class Popover extends Component { * @returns {void} */ _onShowDialog() { - this.setState({ showDialog: true }); + if (!this.props.disablePopover) { + this.setState({ showDialog: true }); - if (this.props.onPopoverOpen) { - this.props.onPopoverOpen(); + if (this.props.onPopoverOpen) { + this.props.onPopoverOpen(); + } } - } /** diff --git a/react/features/connection-indicator/components/ConnectionIndicator.js b/react/features/connection-indicator/components/ConnectionIndicator.js index 8ac2602ff..852f7101e 100644 --- a/react/features/connection-indicator/components/ConnectionIndicator.js +++ b/react/features/connection-indicator/components/ConnectionIndicator.js @@ -222,6 +222,7 @@ class ConnectionIndicator extends Component {