Skip to content

Commit

Permalink
Fix primefaces #4848 AutoComplete: can't remove item (#4855)
Browse files Browse the repository at this point in the history
* Fix primefaces #4848 AutoComplete: can't remove item

* Fix primefaces #4848 AutoComplete: can't remove item

* Update components/lib/autocomplete/AutoComplete.js

Co-authored-by: Melloware <mellowaredev@gmail.com>

---------

Co-authored-by: akshayantony55 <akshayantony55@gmail.com>
Co-authored-by: Melloware <mellowaredev@gmail.com>
  • Loading branch information
3 people authored Sep 1, 2023
1 parent af40f2a commit 6371a2e
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 @@ -152,7 +152,7 @@ export const AutoComplete = React.memo(
});
}

selectedItem.current = value;
selectedItem.current = ObjectUtils.isNotEmpty(value) ? value : null;
};

const formatValue = (value) => {
Expand Down

0 comments on commit 6371a2e

Please sign in to comment.