diff --git a/src/renderers/Custom.tsx b/src/renderers/Custom.tsx index dd1b3de00..70144b8e9 100644 --- a/src/renderers/Custom.tsx +++ b/src/renderers/Custom.tsx @@ -107,8 +107,7 @@ export class Custom extends React.Component { wrapperComponent, inline, translate: __, - classnames: cx, - ...rest + classnames: cx } = this.props; const Component = wrapperComponent || inline ? 'span' : 'div'; return ( @@ -117,7 +116,6 @@ export class Custom extends React.Component { className={cx(className)} id={id} dangerouslySetInnerHTML={{__html: html ? html : ''}} - {...rest} > ); } diff --git a/src/renderers/Wrapper.tsx b/src/renderers/Wrapper.tsx index fd8d9ec18..865a531ab 100644 --- a/src/renderers/Wrapper.tsx +++ b/src/renderers/Wrapper.tsx @@ -53,20 +53,12 @@ export default class Wrapper extends React.Component { } render() { - const { - className, - size, - classnames: cx, - style, - translate: __, - ...rest - } = this.props; + const {className, size, classnames: cx, style} = this.props; return (
{this.renderBody()}