@gustavo-valsechi/client 1.4.214 → 1.4.216
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.
|
@@ -54,7 +54,6 @@ function InputSelect(props) {
|
|
|
54
54
|
(0, import_react.useEffect)(() => {
|
|
55
55
|
var _a2;
|
|
56
56
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current) || !Object.keys(props.options || {}).length) return;
|
|
57
|
-
console.log("OPTIONS");
|
|
58
57
|
target.add({
|
|
59
58
|
ref: inputRef,
|
|
60
59
|
component: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -21,7 +21,6 @@ function InputSelect(props) {
|
|
|
21
21
|
useEffect(() => {
|
|
22
22
|
var _a2;
|
|
23
23
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current) || !Object.keys(props.options || {}).length) return;
|
|
24
|
-
console.log("OPTIONS");
|
|
25
24
|
target.add({
|
|
26
25
|
ref: inputRef,
|
|
27
26
|
component: /* @__PURE__ */ jsx(
|
|
@@ -154,11 +154,13 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
154
154
|
};
|
|
155
155
|
const add = (target) => {
|
|
156
156
|
const exists = import_lodash.default.find(memory, (data) => data.ref.current === target.ref.current);
|
|
157
|
-
console.log(exists);
|
|
157
|
+
console.log("exists", exists);
|
|
158
158
|
if (exists) return;
|
|
159
|
+
console.log("target", target);
|
|
159
160
|
memory.push(target);
|
|
160
161
|
setTargets(memory);
|
|
161
162
|
};
|
|
163
|
+
console.log(targets);
|
|
162
164
|
const remove = (ref) => {
|
|
163
165
|
const index = import_lodash.default.findIndex(memory, (data) => data.ref.current === ref.current);
|
|
164
166
|
insideMemory.splice(import_lodash.default.findIndex(insideMemory, (i) => i === index), 1);
|
|
@@ -120,11 +120,13 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
120
120
|
};
|
|
121
121
|
const add = (target) => {
|
|
122
122
|
const exists = _.find(memory, (data) => data.ref.current === target.ref.current);
|
|
123
|
-
console.log(exists);
|
|
123
|
+
console.log("exists", exists);
|
|
124
124
|
if (exists) return;
|
|
125
|
+
console.log("target", target);
|
|
125
126
|
memory.push(target);
|
|
126
127
|
setTargets(memory);
|
|
127
128
|
};
|
|
129
|
+
console.log(targets);
|
|
128
130
|
const remove = (ref) => {
|
|
129
131
|
const index = _.findIndex(memory, (data) => data.ref.current === ref.current);
|
|
130
132
|
insideMemory.splice(_.findIndex(insideMemory, (i) => i === index), 1);
|