Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ready event executed once if we have multiple table #716

Open
1 task
sonizef opened this issue Apr 5, 2024 · 0 comments
Open
1 task

[Bug]: ready event executed once if we have multiple table #716

sonizef opened this issue Apr 5, 2024 · 0 comments
Labels

Comments

@sonizef
Copy link

sonizef commented Apr 5, 2024

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

If I have multiple component with chartEvents ( "ready" ) my callback is executed only once.

Even if my component was unmounted and mounted again, my callback is not executed.

<Chart
	chartType={props.chartType}
	key={props.graphID}
	data={data}
	options={props.options}
	height={props.height || 'auto'}
	chartEvents={[
		{
			eventName: 'ready',
			callback: handleChartReady,
		},
	]}
/>

I excepted my callback was executed for each Chart.

** I've this issue only with Chart of type table **

Reproduction

Add multiple with chartEvents "ready"

react-google-charts version

^4.0.1

Possible solution

I tried to find a solution ( maybe in the Event manager ) but I found nothing

@sonizef sonizef added the bug label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant