publ-echo-test 0.0.194 → 0.0.196
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.
@@ -55,6 +55,7 @@ var GridItem = function (_a) {
|
|
55
55
|
var callback = function (mutationsList) {
|
56
56
|
for (var _i = 0, mutationsList_1 = mutationsList; _i < mutationsList_1.length; _i++) {
|
57
57
|
var mutation = mutationsList_1[_i];
|
58
|
+
console.log(mutation.attributeName);
|
58
59
|
var isCharacterChanged = mutation.type === 'characterData';
|
59
60
|
var keepWidth = true;
|
60
61
|
var hasPaddingChanged = false;
|
@@ -109,6 +110,7 @@ var GridItem = function (_a) {
|
|
109
110
|
attributes: true,
|
110
111
|
subtree: true,
|
111
112
|
attributeOldValue: true,
|
113
|
+
attributeFilter: ['data-status'],
|
112
114
|
};
|
113
115
|
// 대상 노드와 설정으로 관찰 시작
|
114
116
|
observer.observe(targetNode, config);
|
@@ -13,6 +13,7 @@ var OutsideClickHandler = function (_a) {
|
|
13
13
|
useEffect(function () {
|
14
14
|
var handleClickOutside = function (e) {
|
15
15
|
var target = e.target;
|
16
|
+
console.log(target);
|
16
17
|
if (target.closest('.editable-grid-item') ||
|
17
18
|
target.closest('.group') ||
|
18
19
|
target.closest('.placeholder')) {
|
@@ -23,8 +24,8 @@ var OutsideClickHandler = function (_a) {
|
|
23
24
|
onOutsideClick();
|
24
25
|
}
|
25
26
|
};
|
26
|
-
|
27
|
-
|
27
|
+
var selectedSection = document.querySelector('.editor-canvas');
|
28
|
+
// const selectedSection = document;
|
28
29
|
if (selectedSection) {
|
29
30
|
selectedSection.addEventListener('dblclick', handleClickOutside);
|
30
31
|
}
|