@gustavo-valsechi/client 1.4.147 → 1.4.149
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.
|
@@ -50,6 +50,9 @@ function InputSelect(props) {
|
|
|
50
50
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
51
51
|
const inputValue = (_a = props.watch) == null ? void 0 : _a.call(props, props.name);
|
|
52
52
|
const value = ((_b = import_lodash.default.find(props.options, (option) => Object.keys(option)[0] === inputValue)) == null ? void 0 : _b[inputValue || ""]) || "";
|
|
53
|
+
console.log(inputValue);
|
|
54
|
+
console.log(import_lodash.default.find(props.options, (option) => Object.keys(option)[0] === inputValue));
|
|
55
|
+
console.log(value);
|
|
53
56
|
(0, import_react.useEffect)(() => {
|
|
54
57
|
var _a2;
|
|
55
58
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
|
|
@@ -111,7 +114,7 @@ function InputSelect(props) {
|
|
|
111
114
|
onFocus,
|
|
112
115
|
onBlur,
|
|
113
116
|
onClick: () => inputRef.current.focus(),
|
|
114
|
-
value: focus ? filter :
|
|
117
|
+
value: focus ? filter : "",
|
|
115
118
|
placeholder: import_lodash.default.isString(value) ? value : (value == null ? void 0 : value.textContent) || ""
|
|
116
119
|
}
|
|
117
120
|
),
|
|
@@ -17,6 +17,9 @@ function InputSelect(props) {
|
|
|
17
17
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
18
18
|
const inputValue = (_a = props.watch) == null ? void 0 : _a.call(props, props.name);
|
|
19
19
|
const value = ((_b = _.find(props.options, (option) => Object.keys(option)[0] === inputValue)) == null ? void 0 : _b[inputValue || ""]) || "";
|
|
20
|
+
console.log(inputValue);
|
|
21
|
+
console.log(_.find(props.options, (option) => Object.keys(option)[0] === inputValue));
|
|
22
|
+
console.log(value);
|
|
20
23
|
useEffect(() => {
|
|
21
24
|
var _a2;
|
|
22
25
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
|
|
@@ -78,7 +81,7 @@ function InputSelect(props) {
|
|
|
78
81
|
onFocus,
|
|
79
82
|
onBlur,
|
|
80
83
|
onClick: () => inputRef.current.focus(),
|
|
81
|
-
value: focus ? filter :
|
|
84
|
+
value: focus ? filter : "",
|
|
82
85
|
placeholder: _.isString(value) ? value : (value == null ? void 0 : value.textContent) || ""
|
|
83
86
|
}
|
|
84
87
|
),
|