Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/js/class.dashboard.widget.placeholder.js')
-rw-r--r--ui/js/class.dashboard.widget.placeholder.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/js/class.dashboard.widget.placeholder.js b/ui/js/class.dashboard.widget.placeholder.js
index 1a5e30307f0..892f06c7f16 100644
--- a/ui/js/class.dashboard.widget.placeholder.js
+++ b/ui/js/class.dashboard.widget.placeholder.js
@@ -94,7 +94,11 @@ class CDashboardWidgetPlaceholder extends CBaseComponent {
link.textContent = t('Add a new widget');
link.href = 'javascript:void(0)';
- this._target.addEventListener('click', () => this.fire(WIDGET_PLACEHOLDER_EVENT_ADD_NEW_WIDGET));
+ this._target.addEventListener('click', (e) => {
+ e.stopImmediatePropagation();
+
+ this.fire(WIDGET_PLACEHOLDER_EVENT_ADD_NEW_WIDGET);
+ });
this._placeholder_box_label_wrap.appendChild(link);