Skip to content

Commit

Permalink
fix: Primefaces #5241, AutoComplete: Primitive value 0 does not displ…
Browse files Browse the repository at this point in the history
…ay correctly
  • Loading branch information
akshayantony55 committed Nov 6, 2023
1 parent c24521e commit 13d6837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 13d6837

Please sign in to comment.