@economic/taco 3.0.0-value-renderer.0 → 3.0.0
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.
- package/dist/taco.cjs +2 -2
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.js +2 -2
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.js
CHANGED
|
@@ -25285,8 +25285,8 @@ const useCombobox = (props, ref) => {
|
|
|
25285
25285
|
const flattenedData = useFlattenedData(unfilteredData);
|
|
25286
25286
|
const convertToInputValue = React.useCallback(
|
|
25287
25287
|
(val) => {
|
|
25288
|
-
|
|
25289
|
-
|
|
25288
|
+
const option = findByValue(flattenedData, val);
|
|
25289
|
+
if (typeof valueRenderer === "function" && option) {
|
|
25290
25290
|
return valueRenderer(option);
|
|
25291
25291
|
}
|
|
25292
25292
|
return defaultConvertToInputValue(val);
|