@syncfusion/ej2-navigations 33.1.44 → 33.1.46

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.
@@ -9396,6 +9396,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9396
9396
  }
9397
9397
  this.element.classList.add(CLS_FOCUS);
9398
9398
  var trg = e.target;
9399
+ if (!trg || !trg.isConnected) {
9400
+ return;
9401
+ }
9399
9402
  var tabHeader = this.getTabHeader();
9400
9403
  var actEle = select('.' + CLS_ACTIVE$1, tabHeader);
9401
9404
  this.popEle = select('.' + CLS_TB_POP, tabHeader);
@@ -9407,7 +9410,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9407
9410
  switch (e.action) {
9408
9411
  case 'space':
9409
9412
  case 'enter':
9410
- if (trg.parentElement.classList.contains(CLS_DISABLE$4)) {
9413
+ if (trg.parentElement && trg.parentElement.classList.contains(CLS_DISABLE$4)) {
9411
9414
  return;
9412
9415
  }
9413
9416
  if (e.action === 'enter' && trg.classList.contains('e-hor-nav')) {
@@ -9557,12 +9560,20 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9557
9560
  }
9558
9561
  if (properties[j] === 'cssClass') {
9559
9562
  if (!isNullOrUndefined(hdrItem)) {
9560
- hdrItem.classList.remove(oldVal);
9561
- hdrItem.classList.add(newVal);
9563
+ if (!isNullOrUndefined(oldVal) && oldVal !== '') {
9564
+ hdrItem.classList.remove(oldVal);
9565
+ }
9566
+ if (!isNullOrUndefined(newVal) && newVal !== '') {
9567
+ hdrItem.classList.add(newVal);
9568
+ }
9562
9569
  }
9563
9570
  if (!isNullOrUndefined(cntItem)) {
9564
- cntItem.classList.remove(oldVal);
9565
- cntItem.classList.add(newVal);
9571
+ if (!isNullOrUndefined(oldVal) && oldVal !== '') {
9572
+ cntItem.classList.remove(oldVal);
9573
+ }
9574
+ if (!isNullOrUndefined(newVal) && newVal !== '') {
9575
+ cntItem.classList.add(newVal);
9576
+ }
9566
9577
  }
9567
9578
  }
9568
9579
  if (properties[j] === 'disabled') {
@@ -16378,8 +16389,8 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
16378
16389
  if (isNullOrUndefined(uid)) {
16379
16390
  return uid;
16380
16391
  }
16381
- if (typeof uid === 'string' && uid.indexOf(' #') !== -1) {
16382
- return uid.split(' #').join(' \\#');
16392
+ if (typeof uid === 'string') {
16393
+ return uid.replace(/[#:.[\]!~^$*() ]/g, '\\$&');
16383
16394
  }
16384
16395
  return uid;
16385
16396
  };