@gustavo-valsechi/client 1.4.137 → 1.4.138

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,10 +50,8 @@ const TargetProviderContainer = ({ children }) => {
50
50
  if (isFocusable) return target.ref.current;
51
51
  return inputRef.current[index];
52
52
  };
53
- console.log("insideMemory", insideMemory);
54
53
  const blur = (index) => {
55
54
  insideMemory.splice(import_lodash.default.findIndex(insideMemory, (i) => i === index), 1);
56
- console.log("insideMemory in blur function", insideMemory);
57
55
  elementFocusable(targets[index], index).focus();
58
56
  elementFocusable(targets[index], index).blur();
59
57
  };
@@ -118,6 +116,7 @@ const TargetProviderContainer = ({ children }) => {
118
116
  const focusable = elementFocusable(target, index);
119
117
  const targetElement = containerRef.current[index];
120
118
  element.addEventListener("click", () => {
119
+ console.log("click", insideMemory);
121
120
  const styles = window.getComputedStyle(targetElement);
122
121
  if (styles.opacity === "1") {
123
122
  blur(index);
@@ -132,6 +131,7 @@ const TargetProviderContainer = ({ children }) => {
132
131
  open(target, index);
133
132
  });
134
133
  focusable.addEventListener("blur", () => {
134
+ console.log("blur", insideMemory);
135
135
  if (import_lodash.default.some(insideMemory, (i) => i === index)) return;
136
136
  close(index);
137
137
  });
@@ -16,10 +16,8 @@ const TargetProviderContainer = ({ children }) => {
16
16
  if (isFocusable) return target.ref.current;
17
17
  return inputRef.current[index];
18
18
  };
19
- console.log("insideMemory", insideMemory);
20
19
  const blur = (index) => {
21
20
  insideMemory.splice(_.findIndex(insideMemory, (i) => i === index), 1);
22
- console.log("insideMemory in blur function", insideMemory);
23
21
  elementFocusable(targets[index], index).focus();
24
22
  elementFocusable(targets[index], index).blur();
25
23
  };
@@ -84,6 +82,7 @@ const TargetProviderContainer = ({ children }) => {
84
82
  const focusable = elementFocusable(target, index);
85
83
  const targetElement = containerRef.current[index];
86
84
  element.addEventListener("click", () => {
85
+ console.log("click", insideMemory);
87
86
  const styles = window.getComputedStyle(targetElement);
88
87
  if (styles.opacity === "1") {
89
88
  blur(index);
@@ -98,6 +97,7 @@ const TargetProviderContainer = ({ children }) => {
98
97
  open(target, index);
99
98
  });
100
99
  focusable.addEventListener("blur", () => {
100
+ console.log("blur", insideMemory);
101
101
  if (_.some(insideMemory, (i) => i === index)) return;
102
102
  close(index);
103
103
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.137",
3
+ "version": "1.4.138",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",