@gustavo-valsechi/client 1.4.124 → 1.4.125
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.
|
@@ -50,8 +50,10 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
50
50
|
if (isFocusable) return target.ref.current;
|
|
51
51
|
return inputRef.current[index];
|
|
52
52
|
};
|
|
53
|
+
console.log("insideMemory", insideMemory);
|
|
53
54
|
const blur = (index) => {
|
|
54
55
|
insideMemory.splice(import_lodash.default.findIndex(insideMemory, (i) => i === index), 1);
|
|
56
|
+
console.log("insideMemory in blur function", insideMemory);
|
|
55
57
|
elementFocusable(targets[index], index).blur();
|
|
56
58
|
};
|
|
57
59
|
const close = (index) => {
|
|
@@ -117,7 +119,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
117
119
|
element.addEventListener("click", () => {
|
|
118
120
|
const styles = window.getComputedStyle(targetElement);
|
|
119
121
|
if (styles.opacity === "1") {
|
|
120
|
-
|
|
122
|
+
close(index);
|
|
121
123
|
return;
|
|
122
124
|
}
|
|
123
125
|
open(target, index);
|
|
@@ -126,7 +128,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
126
128
|
import_lodash.default.forEach(containerRef.current, (elementRef) => blur(index));
|
|
127
129
|
});
|
|
128
130
|
focusable.addEventListener("blur", () => {
|
|
129
|
-
console.log(insideMemory);
|
|
131
|
+
console.log("insideMemory in blur", insideMemory);
|
|
130
132
|
if (import_lodash.default.some(insideMemory, (i) => i === index)) return;
|
|
131
133
|
close(index);
|
|
132
134
|
});
|
|
@@ -16,8 +16,10 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
16
16
|
if (isFocusable) return target.ref.current;
|
|
17
17
|
return inputRef.current[index];
|
|
18
18
|
};
|
|
19
|
+
console.log("insideMemory", insideMemory);
|
|
19
20
|
const blur = (index) => {
|
|
20
21
|
insideMemory.splice(_.findIndex(insideMemory, (i) => i === index), 1);
|
|
22
|
+
console.log("insideMemory in blur function", insideMemory);
|
|
21
23
|
elementFocusable(targets[index], index).blur();
|
|
22
24
|
};
|
|
23
25
|
const close = (index) => {
|
|
@@ -83,7 +85,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
83
85
|
element.addEventListener("click", () => {
|
|
84
86
|
const styles = window.getComputedStyle(targetElement);
|
|
85
87
|
if (styles.opacity === "1") {
|
|
86
|
-
|
|
88
|
+
close(index);
|
|
87
89
|
return;
|
|
88
90
|
}
|
|
89
91
|
open(target, index);
|
|
@@ -92,7 +94,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
92
94
|
_.forEach(containerRef.current, (elementRef) => blur(index));
|
|
93
95
|
});
|
|
94
96
|
focusable.addEventListener("blur", () => {
|
|
95
|
-
console.log(insideMemory);
|
|
97
|
+
console.log("insideMemory in blur", insideMemory);
|
|
96
98
|
if (_.some(insideMemory, (i) => i === index)) return;
|
|
97
99
|
close(index);
|
|
98
100
|
});
|