-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Closed
Copy link
Labels
Description
Expected behavior
Updating a patch version shouldn't cause types to start bleeding or crash. This has already happened before already. I get that this is to ease development, but having 2 different types for a value doesn't seem like a good practice.
Current behavior
It seems the new types for many structures like legend and tooltips have been allowed to be either a boolean or a structure, so when updating legend.display or tooltips.enable the types will crash.
Reproducible sample
Optional extra steps/info to reproduce
No response
Possible solution
Either keep the old structure instead of a boolean / structure format; or add a property "enable" that will act as the new boolean so when false the rest of properties do not need to be set.
Context
No response
chart.js version
v4.3.1
Browser name and version
No response
Link to your project
No response