@gustavo-valsechi/client 1.4.80 → 1.4.82
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.
|
@@ -52,7 +52,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
52
52
|
element.addEventListener("click", () => {
|
|
53
53
|
const targetElement = import_lodash.default.find(containerRef.current, (data, i) => i === index);
|
|
54
54
|
if (!targetElement) return;
|
|
55
|
-
console.log(index, "onClick");
|
|
56
55
|
if (targetElement.style.opacity === "1") {
|
|
57
56
|
targetElement.style.opacity = "0";
|
|
58
57
|
targetElement.style.zIndex = "-1";
|
|
@@ -127,11 +126,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
127
126
|
ref: (element) => inputRef.current[index] = element,
|
|
128
127
|
onBlur: () => {
|
|
129
128
|
if (inside) return;
|
|
130
|
-
|
|
131
|
-
containerRef.current[index].click();
|
|
132
|
-
},
|
|
133
|
-
onFocus: () => {
|
|
134
|
-
console.log(index, "onFocus");
|
|
129
|
+
target.ref.current.click();
|
|
135
130
|
}
|
|
136
131
|
}
|
|
137
132
|
)
|
|
@@ -18,7 +18,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
18
18
|
element.addEventListener("click", () => {
|
|
19
19
|
const targetElement = _.find(containerRef.current, (data, i) => i === index);
|
|
20
20
|
if (!targetElement) return;
|
|
21
|
-
console.log(index, "onClick");
|
|
22
21
|
if (targetElement.style.opacity === "1") {
|
|
23
22
|
targetElement.style.opacity = "0";
|
|
24
23
|
targetElement.style.zIndex = "-1";
|
|
@@ -93,11 +92,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
93
92
|
ref: (element) => inputRef.current[index] = element,
|
|
94
93
|
onBlur: () => {
|
|
95
94
|
if (inside) return;
|
|
96
|
-
|
|
97
|
-
containerRef.current[index].click();
|
|
98
|
-
},
|
|
99
|
-
onFocus: () => {
|
|
100
|
-
console.log(index, "onFocus");
|
|
95
|
+
target.ref.current.click();
|
|
101
96
|
}
|
|
102
97
|
}
|
|
103
98
|
)
|