From ef81d79f754280c4a524c2212b722d4b079692e9 Mon Sep 17 00:00:00 2001 From: akshayaqburst <123446355+akshayaqburst@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:36:05 +0530 Subject: [PATCH] fix: Primefaces #5241, AutoComplete: Primitive value 0 does not display correctly (#5242) * fix: Primefaces #5241, AutoComplete: Primitive value 0 does not display correctly * fix: Primefaces #5241, AutoComplete: Primitive value 0 does not display correctly --------- Co-authored-by: akshayantony55 --- components/lib/autocomplete/AutoComplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/autocomplete/AutoComplete.js b/components/lib/autocomplete/AutoComplete.js index d8c5930124..ffeeb1743a 100644 --- a/components/lib/autocomplete/AutoComplete.js +++ b/components/lib/autocomplete/AutoComplete.js @@ -159,7 +159,7 @@ export const AutoComplete = React.memo( }; const formatValue = (value) => { - if (value) { + if (ObjectUtils.isNotEmpty(value)) { if (typeof value === 'string') { return value; } else if (props.selectedItemTemplate) {