publ-echo-test 0.0.221 → 0.0.223
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,7 @@ 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
|
+
console.log('mutation', mutation);
|
141
142
|
var isSizeChanged = mutation.attributeName === 'data-min-width' || mutation.attributeName === 'data-min-height';
|
142
143
|
var keepWidth = true;
|
143
144
|
var hasPaddingChanged = false;
|
@@ -198,7 +199,7 @@ var GridItem = function (_a) {
|
|
198
199
|
// MutationObserver 인스턴스 생성
|
199
200
|
var observer = new MutationObserver(callback);
|
200
201
|
// 관찰할 DOM 변이 설정
|
201
|
-
var config = { attributes: true,
|
202
|
+
var config = { attributes: true, characterData: true };
|
202
203
|
// 대상 노드와 설정으로 관찰 시작
|
203
204
|
observer.observe(targetNode, config);
|
204
205
|
// 정리 함수에서 MutationObserver 해제
|