@gustavo-valsechi/client 1.4.270 → 1.4.272
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,7 +112,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
112
112
|
blur(index);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
console.log(target, index);
|
|
115
|
+
console.log("CLICK", target, index);
|
|
116
116
|
elementFocusable(target, index).focus();
|
|
117
117
|
});
|
|
118
118
|
if (theme.content.isMobile) return;
|
|
@@ -123,10 +123,12 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
123
123
|
import_lodash.default.forEach(containerRef.current, (elementRef) => blur(index));
|
|
124
124
|
});
|
|
125
125
|
focusable.addEventListener("focus", () => {
|
|
126
|
+
console.log("FOCUS", target, index);
|
|
126
127
|
open(target, index);
|
|
127
128
|
});
|
|
128
129
|
focusable.addEventListener("blur", () => {
|
|
129
130
|
if (import_lodash.default.some(insideMemory, (i) => i === index)) {
|
|
131
|
+
console.log("BLUR", target, index);
|
|
130
132
|
elementFocusable(targets[index], index).focus();
|
|
131
133
|
return;
|
|
132
134
|
}
|
|
@@ -177,6 +179,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
177
179
|
element.style.left = `${coords.left}px`;
|
|
178
180
|
element.style.opacity = "1";
|
|
179
181
|
element.style.zIndex = "10";
|
|
182
|
+
console.log("OPEN", target, index);
|
|
180
183
|
};
|
|
181
184
|
const removeInside = (index) => {
|
|
182
185
|
insideMemory.splice(import_lodash.default.findIndex(insideMemory, (i) => i === index), 1);
|
|
@@ -78,7 +78,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
78
78
|
blur(index);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
console.log(target, index);
|
|
81
|
+
console.log("CLICK", target, index);
|
|
82
82
|
elementFocusable(target, index).focus();
|
|
83
83
|
});
|
|
84
84
|
if (theme.content.isMobile) return;
|
|
@@ -89,10 +89,12 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
89
89
|
_.forEach(containerRef.current, (elementRef) => blur(index));
|
|
90
90
|
});
|
|
91
91
|
focusable.addEventListener("focus", () => {
|
|
92
|
+
console.log("FOCUS", target, index);
|
|
92
93
|
open(target, index);
|
|
93
94
|
});
|
|
94
95
|
focusable.addEventListener("blur", () => {
|
|
95
96
|
if (_.some(insideMemory, (i) => i === index)) {
|
|
97
|
+
console.log("BLUR", target, index);
|
|
96
98
|
elementFocusable(targets[index], index).focus();
|
|
97
99
|
return;
|
|
98
100
|
}
|
|
@@ -143,6 +145,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
143
145
|
element.style.left = `${coords.left}px`;
|
|
144
146
|
element.style.opacity = "1";
|
|
145
147
|
element.style.zIndex = "10";
|
|
148
|
+
console.log("OPEN", target, index);
|
|
146
149
|
};
|
|
147
150
|
const removeInside = (index) => {
|
|
148
151
|
insideMemory.splice(_.findIndex(insideMemory, (i) => i === index), 1);
|