From c2afd37f5e6f246686a2ae41e976c7b991fcf8bb Mon Sep 17 00:00:00 2001 From: Lohitaksh Trehan Date: Tue, 23 Jun 2020 16:27:38 +0530 Subject: [PATCH] [fix]: The clear function supports `silent` flag, but we have not made it available in the event 'gridClearSelection_', this is useful as it gives us control when we want to notify onSelectionChange event while clearing selection. --- modules/extendedSelect/_Base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/extendedSelect/_Base.js b/modules/extendedSelect/_Base.js index 7d72a4a2b..2f5c32814 100644 --- a/modules/extendedSelect/_Base.js +++ b/modules/extendedSelect/_Base.js @@ -56,9 +56,9 @@ define([ var t = this, g = t.grid, doc = win.doc; g.domNode.setAttribute('aria-multiselectable', true); t._refSelectedIds = []; - t.subscribe('gridClearSelection_' + g.id, function(type){ + t.subscribe('gridClearSelection_' + g.id, function(type, silent){ if(type != t._type){ - t.clear(); + t.clear(silent); } }); t.batchConnect(