ninegrid2 6.494.0 → 6.495.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.
@@ -83,13 +83,7 @@ class aiContainer extends HTMLElement
83
83
  #init = (info) => {
84
84
 
85
85
  const toggleCollapseHandler = () => {
86
- if (!containerRef.current) return;
87
-
88
- containerRef.current.classList.toggle("collapse");
89
-
90
- if (!containerRef.current.classList.contains("collapse")) {
91
- // this.#resetAsk();
92
- }
86
+ this.classList.toggle("collapse");
93
87
  };
94
88
 
95
89
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);
@@ -27937,11 +27937,7 @@ class aiContainer extends HTMLElement
27937
27937
  #init = (info) => {
27938
27938
 
27939
27939
  const toggleCollapseHandler = () => {
27940
- if (!containerRef.current) return;
27941
-
27942
- containerRef.current.classList.toggle("collapse");
27943
-
27944
- if (!containerRef.current.classList.contains("collapse")) ;
27940
+ this.classList.toggle("collapse");
27945
27941
  };
27946
27942
 
27947
27943
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);
@@ -27935,11 +27935,7 @@ class aiContainer extends HTMLElement
27935
27935
  #init = (info) => {
27936
27936
 
27937
27937
  const toggleCollapseHandler = () => {
27938
- if (!containerRef.current) return;
27939
-
27940
- containerRef.current.classList.toggle("collapse");
27941
-
27942
- if (!containerRef.current.classList.contains("collapse")) ;
27938
+ this.classList.toggle("collapse");
27943
27939
  };
27944
27940
 
27945
27941
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.494.0",
4
+ "version": "6.495.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -83,13 +83,7 @@ class aiContainer extends HTMLElement
83
83
  #init = (info) => {
84
84
 
85
85
  const toggleCollapseHandler = () => {
86
- if (!containerRef.current) return;
87
-
88
- containerRef.current.classList.toggle("collapse");
89
-
90
- if (!containerRef.current.classList.contains("collapse")) {
91
- // this.#resetAsk();
92
- }
86
+ this.classList.toggle("collapse");
93
87
  };
94
88
 
95
89
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);