@gustavo-valsechi/client 1.4.147 → 1.4.148

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,7 @@ 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);
53
54
  (0, import_react.useEffect)(() => {
54
55
  var _a2;
55
56
  if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
@@ -111,7 +112,7 @@ function InputSelect(props) {
111
112
  onFocus,
112
113
  onBlur,
113
114
  onClick: () => inputRef.current.focus(),
114
- value: focus ? filter : inputValue,
115
+ value: focus ? filter : "",
115
116
  placeholder: import_lodash.default.isString(value) ? value : (value == null ? void 0 : value.textContent) || ""
116
117
  }
117
118
  ),
@@ -17,6 +17,7 @@ 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);
20
21
  useEffect(() => {
21
22
  var _a2;
22
23
  if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
@@ -78,7 +79,7 @@ function InputSelect(props) {
78
79
  onFocus,
79
80
  onBlur,
80
81
  onClick: () => inputRef.current.focus(),
81
- value: focus ? filter : inputValue,
82
+ value: focus ? filter : "",
82
83
  placeholder: _.isString(value) ? value : (value == null ? void 0 : value.textContent) || ""
83
84
  }
84
85
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.147",
3
+ "version": "1.4.148",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",