@gustavo-valsechi/client 1.4.88 → 1.4.89

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.
@@ -113,6 +113,8 @@ const TargetProviderContainer = ({ children }) => {
113
113
  element.addEventListener("click", () => {
114
114
  const targetElement = import_lodash.default.find(containerRef.current, (data, i) => i === index);
115
115
  if (!targetElement) return;
116
+ console.log("document.activeElement", document.activeElement);
117
+ console.log("elementFocusable", elementFocusable(target, index));
116
118
  console.log("target focus", elementFocusable(target, index) === document.activeElement);
117
119
  if (elementFocusable(target, index) === document.activeElement) {
118
120
  close(targetElement);
@@ -79,6 +79,8 @@ const TargetProviderContainer = ({ children }) => {
79
79
  element.addEventListener("click", () => {
80
80
  const targetElement = _.find(containerRef.current, (data, i) => i === index);
81
81
  if (!targetElement) return;
82
+ console.log("document.activeElement", document.activeElement);
83
+ console.log("elementFocusable", elementFocusable(target, index));
82
84
  console.log("target focus", elementFocusable(target, index) === document.activeElement);
83
85
  if (elementFocusable(target, index) === document.activeElement) {
84
86
  close(targetElement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.88",
3
+ "version": "1.4.89",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",