publ-echo-test 0.0.218 → 0.0.220

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.
@@ -112,6 +112,9 @@ var GridItem = function (_a) {
112
112
  observer.observe(targetNode, config);
113
113
  // 정리 함수에서 MutationObserver 해제
114
114
  return function () {
115
+ if (targetNode.id === 'contentslist-box') {
116
+ return;
117
+ }
115
118
  observer.disconnect();
116
119
  };
117
120
  }, [autoResize, isSelected, isDragging, isResizing, props.w, props.h, x, y]);
@@ -140,6 +143,10 @@ var GridItem = function (_a) {
140
143
  var hasPaddingChanged = false;
141
144
  var minWidth = Number(mutation.target.dataset.minWidth);
142
145
  var minHeight = Number(mutation.target.dataset.minHeight);
146
+ // If minWidth or minHeight is NaN, return early to prevent errors
147
+ if (isNaN(minWidth) || isNaN(minHeight)) {
148
+ return;
149
+ }
143
150
  var height = isSizeChanged
144
151
  ? mutation.target.parentNode.clientHeight
145
152
  : mutation.target.clientHeight;
@@ -186,11 +193,14 @@ var GridItem = function (_a) {
186
193
  // MutationObserver 인스턴스 생성
187
194
  var observer = new MutationObserver(callback);
188
195
  // 관찰할 DOM 변이 설정
189
- var config = { characterData: true, attributes: true, subtree: true };
196
+ var config = { attributes: true, subtree: true };
190
197
  // 대상 노드와 설정으로 관찰 시작
191
198
  observer.observe(targetNode, config);
192
199
  // 정리 함수에서 MutationObserver 해제
193
200
  return function () {
201
+ if (targetNode.id !== 'contentslist-box') {
202
+ return;
203
+ }
194
204
  observer.disconnect();
195
205
  };
196
206
  }, [autoResize, isSelected, isDragging, isResizing, props.w, props.h, x, y]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.218",
3
+ "version": "0.0.220",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",