@gustavo-valsechi/client 1.4.109 → 1.4.110
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.
|
@@ -52,6 +52,10 @@ function InputSelect(props) {
|
|
|
52
52
|
console.log("inputValue", inputValue);
|
|
53
53
|
const value = ((_b = import_lodash.default.find(props.options, (option) => Object.keys(option)[0] === inputValue)) == null ? void 0 : _b[inputValue || ""]) || "";
|
|
54
54
|
console.log("valueContent", value);
|
|
55
|
+
(0, import_react.useEffect)(() => {
|
|
56
|
+
var _a2;
|
|
57
|
+
(_a2 = props.setValue) == null ? void 0 : _a2.call(props, "1");
|
|
58
|
+
}, []);
|
|
55
59
|
(0, import_react.useEffect)(() => {
|
|
56
60
|
var _a2;
|
|
57
61
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
|
|
@@ -19,6 +19,10 @@ function InputSelect(props) {
|
|
|
19
19
|
console.log("inputValue", inputValue);
|
|
20
20
|
const value = ((_b = _.find(props.options, (option) => Object.keys(option)[0] === inputValue)) == null ? void 0 : _b[inputValue || ""]) || "";
|
|
21
21
|
console.log("valueContent", value);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
var _a2;
|
|
24
|
+
(_a2 = props.setValue) == null ? void 0 : _a2.call(props, "1");
|
|
25
|
+
}, []);
|
|
22
26
|
useEffect(() => {
|
|
23
27
|
var _a2;
|
|
24
28
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
|
|
@@ -49,9 +49,7 @@ function InputSelectOption(props) {
|
|
|
49
49
|
}, [value, props.inputRef]);
|
|
50
50
|
(0, import_react.useEffect)(() => {
|
|
51
51
|
var _a;
|
|
52
|
-
console.log("props.inputRef antes", props.inputRef);
|
|
53
52
|
if (!((_a = props.inputRef) == null ? void 0 : _a.current)) return;
|
|
54
|
-
console.log("props.inputRef depois", props.inputRef);
|
|
55
53
|
props.inputRef.current.addEventListener("change", (e) => {
|
|
56
54
|
e.preventDefault();
|
|
57
55
|
const filter = e.target.value || "";
|
|
@@ -16,9 +16,7 @@ function InputSelectOption(props) {
|
|
|
16
16
|
}, [value, props.inputRef]);
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
var _a;
|
|
19
|
-
console.log("props.inputRef antes", props.inputRef);
|
|
20
19
|
if (!((_a = props.inputRef) == null ? void 0 : _a.current)) return;
|
|
21
|
-
console.log("props.inputRef depois", props.inputRef);
|
|
22
20
|
props.inputRef.current.addEventListener("change", (e) => {
|
|
23
21
|
e.preventDefault();
|
|
24
22
|
const filter = e.target.value || "";
|