@gustavo-valsechi/client 1.4.95 → 1.4.96

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.
@@ -47,7 +47,6 @@ function InputSelect(props) {
47
47
  const register = (props.register || ((name) => ({})))(props.name || "");
48
48
  (0, import_react.useEffect)(() => {
49
49
  if (!(inputRef == null ? void 0 : inputRef.current)) return;
50
- console.log(inputRef == null ? void 0 : inputRef.current);
51
50
  target.add({ ref: inputRef, component: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_options.default, { ...props, inputRef, register }) });
52
51
  return () => target.remove(inputRef);
53
52
  }, [inputRef]);
@@ -14,7 +14,6 @@ function InputSelect(props) {
14
14
  const register = (props.register || ((name) => ({})))(props.name || "");
15
15
  useEffect(() => {
16
16
  if (!(inputRef == null ? void 0 : inputRef.current)) return;
17
- console.log(inputRef == null ? void 0 : inputRef.current);
18
17
  target.add({ ref: inputRef, component: /* @__PURE__ */ jsx(InputSelectOption, { ...props, inputRef, register }) });
19
18
  return () => target.remove(inputRef);
20
19
  }, [inputRef]);
@@ -100,6 +100,8 @@ const TargetProviderContainer = ({ children }) => {
100
100
  import_lodash.default.forEach(targets, (target, index) => {
101
101
  var _a;
102
102
  const element = (_a = target.ref) == null ? void 0 : _a.current;
103
+ console.log(target);
104
+ console.log(element);
103
105
  if (!(element == null ? void 0 : element.addEventListener)) return;
104
106
  element.addEventListener("click", () => {
105
107
  const targetElement = import_lodash.default.find(containerRef.current, (data, i) => i === index);
@@ -66,6 +66,8 @@ const TargetProviderContainer = ({ children }) => {
66
66
  _.forEach(targets, (target, index) => {
67
67
  var _a;
68
68
  const element = (_a = target.ref) == null ? void 0 : _a.current;
69
+ console.log(target);
70
+ console.log(element);
69
71
  if (!(element == null ? void 0 : element.addEventListener)) return;
70
72
  element.addEventListener("click", () => {
71
73
  const targetElement = _.find(containerRef.current, (data, i) => i === index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.95",
3
+ "version": "1.4.96",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",