diff --git a/src/Hyperlink.tsx b/src/Hyperlink.tsx index 891a97e..401406f 100644 --- a/src/Hyperlink.tsx +++ b/src/Hyperlink.tsx @@ -74,9 +74,9 @@ class Hyperlink extends Component { const componentProps = { ...component.props, - ref: undefined, - key: undefined, }; + delete componentProps.key; + delete componentProps.ref; try { this.state.linkifyIt @@ -137,9 +137,9 @@ class Hyperlink extends Component { const componentProps = { ...component.props, - ref: undefined, - key: undefined, }; + delete componentProps.key; + delete componentProps.ref; return React.cloneElement( component,