Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ if (window.BootstrapBlazor.Chart === void 0) {
if (!elementMap.has(element)) {
elementMap.set(element, instance)
}
else {
deepMerge(elementMap.get(element), instance)
}

const data = Data.get(element);
if (data && data.chart) {
deepMerge(data.chart.config._config, instance);
Comment on lines +24 to +26

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Merging directly into data.chart.config._config may rely on internal/unstable Chart.js APIs and could break if _config changes.

data.chart.config._config appears to be an internal Chart.js structure rather than a stable public API. If Chart.js changes this field, the merge will start failing silently. Prefer merging into a documented config object (e.g. data.chart.config or data.chart.options) or using the library’s official update API instead.

data.chart.update();
}
}

getOptionsById(element) {
Expand Down
Loading