Skip to content

Commit

Permalink
fix: Fixes recording dialog web rendering.
Browse files Browse the repository at this point in the history
[features/base/app] <APP.componentDidCatch>:  TypeError: Failed to set an indexed property on 'CSSStyleDeclaration': Indexed property setter is not supported.
  • Loading branch information
damencho committed Mar 2, 2022
1 parent 0936a64 commit 5d41da9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion react/features/base/react/components/web/Text.js
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
});
}
}

0 comments on commit 5d41da9

Please sign in to comment.