From 5d41da93581a1c6ecb400f395c43b24623fc2841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 2 Mar 2022 12:47:38 -0600 Subject: [PATCH] fix: Fixes recording dialog web rendering. [features/base/app] : TypeError: Failed to set an indexed property on 'CSSStyleDeclaration': Indexed property setter is not supported. --- react/features/base/react/components/web/Text.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/react/features/base/react/components/web/Text.js b/react/features/base/react/components/web/Text.js index 65cfddd21..864152ae5 100644 --- a/react/features/base/react/components/web/Text.js +++ b/react/features/base/react/components/web/Text.js @@ -1,5 +1,7 @@ import React, { Component } from 'react'; +import { getFixedPlatformStyle } from '../../../styles'; + /** * Implements a React/Web {@link Component} for displaying text similar to React * Native's {@code Text} in order to facilitate cross-platform source code. @@ -14,6 +16,12 @@ export default class Text extends Component { * @returns {ReactElement} */ render() { - return React.createElement('span', this.props); + // eslint-disable-next-line react/prop-types + const _style = getFixedPlatformStyle(this.props.style); + + return React.createElement('span', { + ...this.props, + style: _style + }); } }