]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Sets the transition mode to the context for scriptable options (#10898)
authorstockiNail <stocki.nail@gmail.com>
Mon, 21 Nov 2022 19:00:51 +0000 (20:00 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 19:00:51 +0000 (14:00 -0500)
src/core/core.datasetController.js

index 6a31228a8efaddc7c31c147d101a2b690537245c..d5b43da8df8e28391321da18dfdf10172d139da2 100644 (file)
@@ -799,7 +799,7 @@ export default class DatasetController {
     const names = Object.keys(defaults.elements[elementType]);
     // context is provided as a function, and is called only if needed,
     // so we don't create a context for each element if not needed.
-    const context = () => this.getContext(index, active);
+    const context = () => this.getContext(index, active, mode);
     const values = config.resolveNamedOptions(scopes, names, context, prefixes);
 
     if (values.$shared) {