@wavemaker/app-ng-runtime 11.5.4-rc.5517 → 11.5.4-rc.5521

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-ng-runtime",
3
- "version": "11.5.4-rc.5517",
3
+ "version": "11.5.4-rc.5521",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2689,6 +2689,7 @@ $.widget('wm.datatable', {
2689
2689
  attachEventHandlers: function ($htm) {
2690
2690
  var $header = this.gridHeaderElement,
2691
2691
  self = this;
2692
+ var isMultiSelect = this.options.multiselect;
2692
2693
 
2693
2694
  if (this.options.enableRowSelection) {
2694
2695
  $htm[0].removeEventListener('click', this.rowClickHandlerOnCapture.bind(this), true);
@@ -2697,6 +2698,13 @@ $.widget('wm.datatable', {
2697
2698
  // assign selectedItems so that any child actions can have access to the selectedItems.
2698
2699
  $htm[0].addEventListener('click', this.rowClickHandlerOnCapture.bind(this), true);
2699
2700
  $htm.on('click', this.rowSelectionHandler.bind(this));
2701
+ $htm.on("click", "td *", function(event) {
2702
+ // Prevent propagation to parent elements
2703
+ if(event.target.type != 'checkbox' && isMultiSelect){
2704
+ event.stopPropagation();
2705
+ }
2706
+
2707
+ });
2700
2708
  $htm.on('dblclick', this.rowDblClickHandler.bind(this));
2701
2709
  $htm.on('keydown', this.onKeyDown.bind(this));
2702
2710
  }