Skip to content

Commit

Permalink
Fix DOM exposed props being passed onto div
Browse files Browse the repository at this point in the history
Div elements should not inherit options & series objects.
  • Loading branch information
iRyanBell committed Aug 19, 2021
1 parent 19b8503 commit b7d664b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-apexcharts.jsx
Expand Up @@ -16,7 +16,7 @@ export default class Charts extends Component {
}

render () {
const { ...props } = this.props
const { type, height, width, series, options, ...props } = this.props
return React.createElement('div', {
ref: React.createRef
? this.chartRef
Expand Down

0 comments on commit b7d664b

Please sign in to comment.