@carbon/charts-vue 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/charts-vue.umd.js CHANGED
@@ -39942,6 +39942,11 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
39942
39942
  };
39943
39943
  // Calls passed function && dispatches event
39944
39944
  Toolbar.prototype.triggerFunctionAndEvent = function (control, event, element) {
39945
+ // Check if trigger is disabled
39946
+ if (typeof control.shouldBeDisabled === 'function' &&
39947
+ control.shouldBeDisabled()) {
39948
+ return;
39949
+ }
39945
39950
  // Call custom function only if it exists
39946
39951
  if (typeof control.clickFunction === 'function') {
39947
39952
  control.clickFunction(event);