@gustavo-valsechi/client 1.4.272 → 1.4.274

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.
@@ -94,6 +94,7 @@ const TargetProviderContainer = ({ children }) => {
94
94
  observer.disconnect();
95
95
  };
96
96
  }, [containerRef]);
97
+ console.log("targets", targets);
97
98
  (0, import_react.useEffect)(() => {
98
99
  import_lodash.default.forEach(targets, (target, index) => {
99
100
  var _a, _b;
@@ -113,7 +114,7 @@ const TargetProviderContainer = ({ children }) => {
113
114
  return;
114
115
  }
115
116
  console.log("CLICK", target, index);
116
- elementFocusable(target, index).focus();
117
+ focusable.focus();
117
118
  });
118
119
  if (theme.content.isMobile) return;
119
120
  toggleElement.addEventListener("mouseleave", () => {
@@ -129,7 +130,7 @@ const TargetProviderContainer = ({ children }) => {
129
130
  focusable.addEventListener("blur", () => {
130
131
  if (import_lodash.default.some(insideMemory, (i) => i === index)) {
131
132
  console.log("BLUR", target, index);
132
- elementFocusable(targets[index], index).focus();
133
+ focusable.focus();
133
134
  return;
134
135
  }
135
136
  close(index);
@@ -60,6 +60,7 @@ const TargetProviderContainer = ({ children }) => {
60
60
  observer.disconnect();
61
61
  };
62
62
  }, [containerRef]);
63
+ console.log("targets", targets);
63
64
  useEffect(() => {
64
65
  _.forEach(targets, (target, index) => {
65
66
  var _a, _b;
@@ -79,7 +80,7 @@ const TargetProviderContainer = ({ children }) => {
79
80
  return;
80
81
  }
81
82
  console.log("CLICK", target, index);
82
- elementFocusable(target, index).focus();
83
+ focusable.focus();
83
84
  });
84
85
  if (theme.content.isMobile) return;
85
86
  toggleElement.addEventListener("mouseleave", () => {
@@ -95,7 +96,7 @@ const TargetProviderContainer = ({ children }) => {
95
96
  focusable.addEventListener("blur", () => {
96
97
  if (_.some(insideMemory, (i) => i === index)) {
97
98
  console.log("BLUR", target, index);
98
- elementFocusable(targets[index], index).focus();
99
+ focusable.focus();
99
100
  return;
100
101
  }
101
102
  close(index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.272",
3
+ "version": "1.4.274",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",