@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.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
- if (valueRenderer) {
25289
- const option = findByValue(flattenedData, val);
25288
+ const option = findByValue(flattenedData, val);
25289
+ if (typeof valueRenderer === "function" && option) {
25290
25290
  return valueRenderer(option);
25291
25291
  }
25292
25292
  return defaultConvertToInputValue(val);