@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.
@@ -9114,6 +9114,9 @@ let Tab = class Tab extends Component {
9114
9114
  }
9115
9115
  this.element.classList.add(CLS_FOCUS);
9116
9116
  const trg = e.target;
9117
+ if (!trg || !trg.isConnected) {
9118
+ return;
9119
+ }
9117
9120
  const tabHeader = this.getTabHeader();
9118
9121
  const actEle = select('.' + CLS_ACTIVE$1, tabHeader);
9119
9122
  this.popEle = select('.' + CLS_TB_POP, tabHeader);
@@ -9125,7 +9128,7 @@ let Tab = class Tab extends Component {
9125
9128
  switch (e.action) {
9126
9129
  case 'space':
9127
9130
  case 'enter':
9128
- if (trg.parentElement.classList.contains(CLS_DISABLE$4)) {
9131
+ if (trg.parentElement && trg.parentElement.classList.contains(CLS_DISABLE$4)) {
9129
9132
  return;
9130
9133
  }
9131
9134
  if (e.action === 'enter' && trg.classList.contains('e-hor-nav')) {
@@ -9274,12 +9277,20 @@ let Tab = class Tab extends Component {
9274
9277
  }
9275
9278
  if (properties[j] === 'cssClass') {
9276
9279
  if (!isNullOrUndefined(hdrItem)) {
9277
- hdrItem.classList.remove(oldVal);
9278
- hdrItem.classList.add(newVal);
9280
+ if (!isNullOrUndefined(oldVal) && oldVal !== '') {
9281
+ hdrItem.classList.remove(oldVal);
9282
+ }
9283
+ if (!isNullOrUndefined(newVal) && newVal !== '') {
9284
+ hdrItem.classList.add(newVal);
9285
+ }
9279
9286
  }
9280
9287
  if (!isNullOrUndefined(cntItem)) {
9281
- cntItem.classList.remove(oldVal);
9282
- cntItem.classList.add(newVal);
9288
+ if (!isNullOrUndefined(oldVal) && oldVal !== '') {
9289
+ cntItem.classList.remove(oldVal);
9290
+ }
9291
+ if (!isNullOrUndefined(newVal) && newVal !== '') {
9292
+ cntItem.classList.add(newVal);
9293
+ }
9283
9294
  }
9284
9295
  }
9285
9296
  if (properties[j] === 'disabled') {
@@ -15995,8 +16006,8 @@ let TreeView = TreeView_1 = class TreeView extends Component {
15995
16006
  if (isNullOrUndefined(uid)) {
15996
16007
  return uid;
15997
16008
  }
15998
- if (typeof uid === 'string' && uid.indexOf(' #') !== -1) {
15999
- return uid.split(' #').join(' \\#');
16009
+ if (typeof uid === 'string') {
16010
+ return uid.replace(/[#:.[\]!~^$*() ]/g, '\\$&');
16000
16011
  }
16001
16012
  return uid;
16002
16013
  }