qms-angular 1.1.30 → 1.1.31

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.
@@ -4378,11 +4378,15 @@
4378
4378
  this.renderer = renderer;
4379
4379
  }
4380
4380
  QMSListExpansionHeader.prototype.onClick = function ($event) {
4381
- var qmsList = document.querySelectorAll('.qms-expansion-header');
4382
- [].forEach.call(qmsList, function (el) {
4383
- el.classList.remove('active-item');
4384
- });
4385
- this.renderer.addClass(this.elRef.nativeElement, 'active-item');
4381
+ var _this = this;
4382
+ setTimeout(function () {
4383
+ if (_this.elRef.nativeElement.classList.contains('mat-expanded')) {
4384
+ _this.renderer.addClass(_this.elRef.nativeElement, 'active-item');
4385
+ }
4386
+ else {
4387
+ _this.renderer.removeClass(_this.elRef.nativeElement, 'active-item');
4388
+ }
4389
+ }, 200);
4386
4390
  };
4387
4391
  QMSListExpansionHeader.prototype.ngAfterContentInit = function () {
4388
4392
  core.setLines(this._lines, this.elRef);