publ-echo-test 0.0.292 → 0.0.293
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.
@@ -138,6 +138,9 @@ var GridItem = function (_a) {
|
|
138
138
|
var callback = function (mutationsList) {
|
139
139
|
for (var _i = 0, mutationsList_2 = mutationsList; _i < mutationsList_2.length; _i++) {
|
140
140
|
var mutation = mutationsList_2[_i];
|
141
|
+
var isInitial = mutation.attributeName === "data-is-initialized" &&
|
142
|
+
mutation.target.getAttribute("data-is-initialized") === "true";
|
143
|
+
console.log("isInitial", isInitial);
|
141
144
|
var isSizeChanged = mutation.attributeName === "data-min-width" ||
|
142
145
|
mutation.attributeName === "data-min-height";
|
143
146
|
var keepWidth = true;
|
@@ -260,12 +263,15 @@ var GridItem = function (_a) {
|
|
260
263
|
var config = { attributes: true, characterData: true };
|
261
264
|
// 대상 노드와 설정으로 관찰 시작
|
262
265
|
observer.observe(targetNode, config);
|
266
|
+
targetNode.setAttribute("data-is-initialized", "true");
|
263
267
|
// 정리 함수에서 MutationObserver 해제
|
264
268
|
return function () {
|
265
269
|
if (targetNode.id !== "contentslist-box") {
|
266
270
|
return;
|
267
271
|
}
|
268
272
|
observer.disconnect();
|
273
|
+
// NOTE: 필수? 아니람 삭제
|
274
|
+
targetNode.removeAttribute("data-is-initialized");
|
269
275
|
};
|
270
276
|
}, [autoResize, isSelected, isDragging, isResizing, props.w, props.h, x, y]);
|
271
277
|
// useEffect(() => {
|