diff --git a/public/js/icinga/behavior/input-enrichment.js b/public/js/icinga/behavior/input-enrichment.js index 662daea4b..4d6cfe1b2 100644 --- a/public/js/icinga/behavior/input-enrichment.js +++ b/public/js/icinga/behavior/input-enrichment.js @@ -29,6 +29,16 @@ this.on('beforerender', '.container', this.onBeforeRender, this); this.on('rendered', '.container', this.onRendered, this); + /** + * Listen for events emitted by the SearchBar widget + */ + this.on('editor-open', '.container', function () { + this.dataset.suspendAutorefresh = ''; + }); + this.on('editor-close', '.container', function () { + delete this.dataset.suspendAutorefresh; + }); + /** * Enriched inputs *