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

Fix setting options in array of objects #9062

Merged
merged 2 commits into from May 12, 2021
Merged

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented May 11, 2021

Fix chartjs/chartjs-plugin-annotation#423

In annotation plugin, when the annotations option is an array of objects, updating the objects did not work properly.
This is because the array that is returned when accessing options, is an array of resolvers, and those resolvers did not properly determine where the changed value should be stored (it was stored in the array).

@kurkle kurkle added this to the Version 3.3 milestone May 11, 2021
@kurkle kurkle merged commit f1ca99b into chartjs:master May 12, 2021
@kurkle kurkle deleted the resolver-array branch May 30, 2021 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird behaviour when updating annotations on Chart.js ^3.1.0
2 participants