mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-04 23:44:05 +01:00
fix: allow beforeTooltipDraw to be cancelable (#10598)
This commit is contained in:
@@ -1241,7 +1241,7 @@ export default {
|
||||
tooltip
|
||||
};
|
||||
|
||||
if (chart.notifyPlugins('beforeTooltipDraw', args) === false) {
|
||||
if (chart.notifyPlugins('beforeTooltipDraw', {...args, cancelable: true}) === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user