@gustavo-valsechi/client 1.4.138 → 1.4.139

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.
@@ -131,11 +131,7 @@ function InputSelect(props) {
131
131
  {
132
132
  className: "input-icon",
133
133
  "data-focus": focus,
134
- onClick: () => {
135
- console.log(focus);
136
- if (focus) return;
137
- inputRef.current.focus();
138
- },
134
+ onClick: () => inputRef.current.click(),
139
135
  children: [
140
136
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
141
137
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
@@ -98,11 +98,7 @@ function InputSelect(props) {
98
98
  {
99
99
  className: "input-icon",
100
100
  "data-focus": focus,
101
- onClick: () => {
102
- console.log(focus);
103
- if (focus) return;
104
- inputRef.current.focus();
105
- },
101
+ onClick: () => inputRef.current.click(),
106
102
  children: [
107
103
  /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
108
104
  /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
@@ -116,7 +116,6 @@ const TargetProviderContainer = ({ children }) => {
116
116
  const focusable = elementFocusable(target, index);
117
117
  const targetElement = containerRef.current[index];
118
118
  element.addEventListener("click", () => {
119
- console.log("click", insideMemory);
120
119
  const styles = window.getComputedStyle(targetElement);
121
120
  if (styles.opacity === "1") {
122
121
  blur(index);
@@ -131,7 +130,6 @@ const TargetProviderContainer = ({ children }) => {
131
130
  open(target, index);
132
131
  });
133
132
  focusable.addEventListener("blur", () => {
134
- console.log("blur", insideMemory);
135
133
  if (import_lodash.default.some(insideMemory, (i) => i === index)) return;
136
134
  close(index);
137
135
  });
@@ -82,7 +82,6 @@ const TargetProviderContainer = ({ children }) => {
82
82
  const focusable = elementFocusable(target, index);
83
83
  const targetElement = containerRef.current[index];
84
84
  element.addEventListener("click", () => {
85
- console.log("click", insideMemory);
86
85
  const styles = window.getComputedStyle(targetElement);
87
86
  if (styles.opacity === "1") {
88
87
  blur(index);
@@ -97,7 +96,6 @@ const TargetProviderContainer = ({ children }) => {
97
96
  open(target, index);
98
97
  });
99
98
  focusable.addEventListener("blur", () => {
100
- console.log("blur", insideMemory);
101
99
  if (_.some(insideMemory, (i) => i === index)) return;
102
100
  close(index);
103
101
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.138",
3
+ "version": "1.4.139",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",