diff --git a/js/CommonFilters.js b/js/CommonFilters.js index a28aa2d24..e0e8034ea 100644 --- a/js/CommonFilters.js +++ b/js/CommonFilters.js @@ -332,7 +332,7 @@ const Filters = { /* global getSelectionText */ const selectedText = getSelectionText(); - const lh = dojo.connect(dialog, "onLoad", function () { + const lh = dojo.connect(dialog, "onShow", function () { dojo.disconnect(lh); if (selectedText != "") {