From 13d68370f13d0a5a3c497c7c04da973229adc6a1 Mon Sep 17 00:00:00 2001 From: akshayantony55 Date: Mon, 6 Nov 2023 12:01:52 +0530 Subject: [PATCH] fix: Primefaces #5241, AutoComplete: Primitive value 0 does not display correctly --- 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 c03e2e47fc..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 || value === 0) { + if (ObjectUtils.isNotEmpty(value)) { if (typeof value === 'string') { return value; } else if (props.selectedItemTemplate) {