@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 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
- if (valueRenderer) {
25307
- const option = findByValue(flattenedData, val);
25306
+ const option = findByValue(flattenedData, val);
25307
+ if (typeof valueRenderer === "function" && option) {
25308
25308
  return valueRenderer(option);
25309
25309
  }
25310
25310
  return defaultConvertToInputValue(val);