@gustavo-valsechi/client 1.4.133 → 1.4.135
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,10 @@ function InputSelect(props) {
|
|
|
126
125
|
{
|
|
127
126
|
className: "input-icon",
|
|
128
127
|
"data-focus": focus,
|
|
129
|
-
onClick: () =>
|
|
128
|
+
onClick: () => {
|
|
129
|
+
if (focus) return;
|
|
130
|
+
inputRef.current.click();
|
|
131
|
+
},
|
|
130
132
|
children: [
|
|
131
133
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
|
|
132
134
|
/* @__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,10 @@ function InputSelect(props) {
|
|
|
93
92
|
{
|
|
94
93
|
className: "input-icon",
|
|
95
94
|
"data-focus": focus,
|
|
96
|
-
onClick: () =>
|
|
95
|
+
onClick: () => {
|
|
96
|
+
if (focus) return;
|
|
97
|
+
inputRef.current.click();
|
|
98
|
+
},
|
|
97
99
|
children: [
|
|
98
100
|
/* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
|
|
99
101
|
/* @__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
|
});
|