@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.cjs
CHANGED
|
@@ -25303,8 +25303,8 @@ const useCombobox = (props, ref) => {
|
|
|
25303
25303
|
const flattenedData = useFlattenedData(unfilteredData);
|
|
25304
25304
|
const convertToInputValue = React__namespace.useCallback(
|
|
25305
25305
|
(val) => {
|
|
25306
|
-
|
|
25307
|
-
|
|
25306
|
+
const option = findByValue(flattenedData, val);
|
|
25307
|
+
if (typeof valueRenderer === "function" && option) {
|
|
25308
25308
|
return valueRenderer(option);
|
|
25309
25309
|
}
|
|
25310
25310
|
return defaultConvertToInputValue(val);
|