react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

wrong attributes on external div

Open rejetto opened this issue 4 years ago • 1 comments

https://github.com/apexcharts/react-apexcharts/blob/19b8503e07bfe49301073af6b0ae6eaba329e572/src/react-apexcharts.jsx#L24

here you are passing all props to the div, while you probably should pass only those that are not extracted by getConfig().

The result is that the external div is rendered like this

    <div options="[object Object]" series="[object Object]" type="line" width="100%" 

rejetto avatar Jul 20 '21 09:07 rejetto

Patched in PR https://github.com/apexcharts/react-apexcharts/pull/332

iRyanBell avatar Aug 24 '21 01:08 iRyanBell