From: stockiNail Date: Mon, 21 Nov 2022 19:00:51 +0000 (+0100) Subject: Sets the transition mode to the context for scriptable options (#10898) X-Git-Tag: v4.1.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36fb08c94670813679e1a723a05120abe58248f5;p=thirdparty%2FChart.js.git Sets the transition mode to the context for scriptable options (#10898) --- diff --git a/src/core/core.datasetController.js b/src/core/core.datasetController.js index 6a31228a8..d5b43da8d 100644 --- a/src/core/core.datasetController.js +++ b/src/core/core.datasetController.js @@ -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) {