x4js 1.4.28 → 1.4.29

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.
package/lib/treeview.js CHANGED
@@ -378,15 +378,13 @@ class TreeView extends layout_1.VLayout {
378
378
  return;
379
379
  }
380
380
  }
381
- this.m_selection = { id: nd.id, el: null };
382
- this.update();
381
+ this.selection = nd.id;
383
382
  this.emit('contextMenu', (0, x4events_1.EvContextMenu)(ev, nd));
384
383
  return;
385
384
  }
386
385
  dom = dom.parentElement;
387
386
  }
388
- this.m_selection = null;
389
- this.update();
387
+ this.selection = null;
390
388
  this.emit('contextMenu', (0, x4events_1.EvContextMenu)(ev, null));
391
389
  }
392
390
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "1.4.28",
3
+ "version": "1.4.29",
4
4
  "description": "X4js core files",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/treeview.ts CHANGED
@@ -521,19 +521,16 @@ export class TreeView extends VLayout<TreeViewProps, TreeViewEventMap> {
521
521
  }
522
522
  }
523
523
 
524
- this.m_selection = { id: nd.id, el: null };
525
- this.update( );
526
-
524
+ this.selection = nd.id;
527
525
  this.emit('contextMenu', EvContextMenu(ev, nd));
526
+
528
527
  return;
529
528
  }
530
529
 
531
530
  dom = dom.parentElement;
532
531
  }
533
532
 
534
- this.m_selection = null;
535
- this.update( );
536
-
533
+ this.selection = null;
537
534
  this.emit('contextMenu', EvContextMenu(ev, null));
538
535
  }
539
536