@gustavo-valsechi/client 1.4.133 → 1.4.134

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.
@@ -85,7 +85,6 @@ function InputSelect(props) {
85
85
  if (!optionsElement) return;
86
86
  optionsElement.setAttribute("value", value2);
87
87
  };
88
- console.log("focus", focus);
89
88
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { className: props.className, error: props.error, children: [
90
89
  !!props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_label.InputLabel, { children: [
91
90
  props.label,
@@ -126,7 +125,7 @@ function InputSelect(props) {
126
125
  {
127
126
  className: "input-icon",
128
127
  "data-focus": focus,
129
- onClick: () => !focus && inputRef.current.click(),
128
+ onClick: !focus && inputRef.current.click,
130
129
  children: [
131
130
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
132
131
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
@@ -52,7 +52,6 @@ function InputSelect(props) {
52
52
  if (!optionsElement) return;
53
53
  optionsElement.setAttribute("value", value2);
54
54
  };
55
- console.log("focus", focus);
56
55
  return /* @__PURE__ */ jsxs(Container, { className: props.className, error: props.error, children: [
57
56
  !!props.label && /* @__PURE__ */ jsxs(InputLabel, { children: [
58
57
  props.label,
@@ -93,7 +92,7 @@ function InputSelect(props) {
93
92
  {
94
93
  className: "input-icon",
95
94
  "data-focus": focus,
96
- onClick: () => !focus && inputRef.current.click(),
95
+ onClick: !focus && inputRef.current.click,
97
96
  children: [
98
97
  /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
99
98
  /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
@@ -128,8 +128,10 @@ const TargetProviderContainer = ({ children }) => {
128
128
  element.addEventListener("resize", () => {
129
129
  import_lodash.default.forEach(containerRef.current, (elementRef) => blur(index));
130
130
  });
131
+ focusable.addEventListener("focus", () => {
132
+ open(target, index);
133
+ });
131
134
  focusable.addEventListener("blur", () => {
132
- console.log("insideMemory in blur", insideMemory);
133
135
  if (import_lodash.default.some(insideMemory, (i) => i === index)) return;
134
136
  close(index);
135
137
  });
@@ -94,8 +94,10 @@ const TargetProviderContainer = ({ children }) => {
94
94
  element.addEventListener("resize", () => {
95
95
  _.forEach(containerRef.current, (elementRef) => blur(index));
96
96
  });
97
+ focusable.addEventListener("focus", () => {
98
+ open(target, index);
99
+ });
97
100
  focusable.addEventListener("blur", () => {
98
- console.log("insideMemory in blur", insideMemory);
99
101
  if (_.some(insideMemory, (i) => i === index)) return;
100
102
  close(index);
101
103
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.133",
3
+ "version": "1.4.134",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",