ninegrid2 6.732.0 → 6.733.0

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.
@@ -120965,14 +120965,20 @@ class nxTab extends HTMLElement {
120965
120965
  }
120966
120966
  });
120967
120967
 
120968
- const tabPages = this.shadowRoot.querySelector('.tab-pages');
120968
+ this.shadowRoot.querySelector('.tab-pages');
120969
120969
 
120970
- console.log(tabPages);
120971
- observer.observe(tabPages, {
120972
- childList: true,
120973
- subtree: true,
120974
- characterData: true
120975
- });
120970
+
120971
+ const activeContent = this.shadowRoot.querySelector('.tab-page.active');
120972
+
120973
+ console.log(activeContent);
120974
+
120975
+ if (activeContent) {
120976
+ observer.observe(activeContent, {
120977
+ childList: true,
120978
+ subtree: true,
120979
+ characterData: true
120980
+ });
120981
+ }
120976
120982
  };
120977
120983
  }
120978
120984
 
@@ -120961,14 +120961,20 @@ class nxTab extends HTMLElement {
120961
120961
  }
120962
120962
  });
120963
120963
 
120964
- const tabPages = this.shadowRoot.querySelector('.tab-pages');
120964
+ this.shadowRoot.querySelector('.tab-pages');
120965
120965
 
120966
- console.log(tabPages);
120967
- observer.observe(tabPages, {
120968
- childList: true,
120969
- subtree: true,
120970
- characterData: true
120971
- });
120966
+
120967
+ const activeContent = this.shadowRoot.querySelector('.tab-page.active');
120968
+
120969
+ console.log(activeContent);
120970
+
120971
+ if (activeContent) {
120972
+ observer.observe(activeContent, {
120973
+ childList: true,
120974
+ subtree: true,
120975
+ characterData: true
120976
+ });
120977
+ }
120972
120978
  };
120973
120979
  }
120974
120980
 
package/dist/nx/nxTab.js CHANGED
@@ -119,12 +119,18 @@ class nxTab extends HTMLElement {
119
119
 
120
120
  const tabPages = this.shadowRoot.querySelector('.tab-pages');
121
121
 
122
- console.log(tabPages);
123
- observer.observe(tabPages, {
124
- childList: true,
125
- subtree: true,
126
- characterData: true
127
- });
122
+
123
+ const activeContent = this.shadowRoot.querySelector('.tab-page.active');
124
+
125
+ console.log(activeContent);
126
+
127
+ if (activeContent) {
128
+ observer.observe(activeContent, {
129
+ childList: true,
130
+ subtree: true,
131
+ characterData: true
132
+ });
133
+ }
128
134
  };
129
135
  }
130
136
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.732.0",
4
+ "version": "6.733.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/nxTab.js CHANGED
@@ -119,12 +119,18 @@ class nxTab extends HTMLElement {
119
119
 
120
120
  const tabPages = this.shadowRoot.querySelector('.tab-pages');
121
121
 
122
- console.log(tabPages);
123
- observer.observe(tabPages, {
124
- childList: true,
125
- subtree: true,
126
- characterData: true
127
- });
122
+
123
+ const activeContent = this.shadowRoot.querySelector('.tab-page.active');
124
+
125
+ console.log(activeContent);
126
+
127
+ if (activeContent) {
128
+ observer.observe(activeContent, {
129
+ childList: true,
130
+ subtree: true,
131
+ characterData: true
132
+ });
133
+ }
128
134
  };
129
135
  }
130
136